LiMoNkA_TM

Members
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About LiMoNkA_TM

  • Rank
    I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody.

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Здравствуйте помогите мне это клиент: local marker = { {1754.4000244141, -1954, 13.5}, {1987.3000488281, -1953.8000488281, 13.5}, {2169.3999023438, -1949.4000244141, 13.5}, {2199, -1753.6999511719, 13.199999809265}, {2261.5, -1518.1999511719, 20.89999961853}, {2285.1999511719, -1194.4000244141, 25.10000038147}, {2285, -935.5, 26.5}, {2139.5, -660.79998779297, 54.900001525879}, {2045.4000244141, -378.60000610352, 66.400001525879}, {2414.3000488281, -271.89999389648, 18.60000038147}, {2741.5, -276, 17.89999961853}, {2827.8000488281, 10.300000190735, 29.10000038147}, {2765.1999511719, 339.29998779297, 8.3000001907349}, {2764.8999023438, 891.29998779297, 10.89999961853}, {2864.8000488281, 1271.4000244141, 10.800000190735}, {2825.8000488281, 1589.8000488281, 10.800000190735}, {2781.1000976563, 1931.3000488281, 4.5999999046326}, {2653.6999511719, 2174.1999511719, -2.4000000953674}, {2553, 2420, 10.10000038147}, {2504, 2659.3999023438, 10.800000190735}, {2070.5, 2694.3999023438, 10.800000190735}, {1696, 2648, 10.800000190735}, {1384, 2632.5, 10.800000190735}, {1048.6999511719, 2739.1000976563, 15}, {786.29998779297, 2579.8000488281, 20.89999961853}, {741.20001220703, 1977, 5.3000001907349}, {676.5, 1332.1999511719, 11.800000190735}, {215.89999389648, 1238.5, 22.799999237061}, {-276.89999389648, 1261.0999755859, 28.89999961853}, {-724.90002441406, 1145.6999511719, 31.39999961853}, {-1045.9000244141, 915.29998779297, 34.599998474121}, {-1402.8000488281, 655.90002441406, 34.599998474121}, {-1797.1999511719, 370.29998779297, 0.5}, {-1943.6999511719, 152, 25.700000762939}, {-1967, -375.79998779297, 25.700000762939}, {-1978.5, -829.20001220703, 25.700000762939}, {-1781, -1384.1999511719, 13.89999961853}, {-1414.8000488281, -1508.6999511719, 22.5}, {-933.20001220703, -1494, 92.199996948242}, {-811.5, -1208, 68.900001525879}, {-517.29998779297, -1223.4000244141, 42}, {-167.30000305176, -1031.5999755859, 11.5}, {273.60000610352, -1043.5, 20}, {673.70001220703, -1247.9000244141, 1.2999999523163}, {1007.700012207, -1561.6999511719, -2.9000000953674}, {1361, -1936.5, 6.8000001907349}, {1685.8000488281, -1954, 13.5}, } local screenW,screenH = guiGetScreenSize() local window = guiCreateWindow(screenW*0.4083, screenH*0.3194, screenW*0.1833, screenH*0.3620, "Работодатель", false) guiWindowSetSizable(window,false) guiWindowSetMovable(window,false) guiSetVisible(window,false) local memo = guiCreateMemo(screenW*0.0052, screenH*0.0259, screenW*0.1729, screenH*0.1722, "Добро пожаловать на работу водителя по перевозке автомобилей!\n\nВаш заработок за один рейс: 15000$", false, window) guiMemoSetReadOnly(memo, true) local button = { guiCreateButton(screenW*0.0526, screenH*0.2379, screenW*0.0786, screenH*0.0435, "Работать", false, window), guiCreateButton(screenW*0.0526, screenH*0.2907, screenW*0.0786, screenH*0.0435, "Закрыть", false, window), } addEvent("show_gui",true) local function show_gui(marker) job_marker = marker guiSetVisible(window,true) showCursor(true) end addEventHandler("show_gui",resourceRoot,show_gui) local function button_click() if source == button[1] then guiSetVisible(window,false) showCursor(false) triggerServerEvent("job_started",resourceRoot,job_marker) job_marker = nil elseif source == button[2] then guiSetVisible(window,false) showCursor(false) end end addEventHandler("onClientGUIClick",resourceRoot,button_click) local jobTarget local jobMarker local jobVehicle local maxTarget = #marker function finishJob() if jobMarker and isElement(jobMarker) then destroyElement(jobMarker) jobMarker = nil end if jobTarget and isElement(jobTarget) then destroyElement(jobTarget) jobTarget = nil jobTarget = 0 end triggerServerEvent("destroyVeh", localPlayer) end function busDriver(el, md) if el ~= localPlayer or not md then return end if jobTarget > maxTarget and getPedOccupiedVehicle(el) then return end if jobTarget == maxTarget and not getPedOccupiedVehicle(el) then return end triggerServerEvent("givePlayerMoney",resourceRoot,200) if jobTarget == #marker then finishJob() playSoundFrontEnd(5) outputChatBox("Вы закончили работу машиниста!") else showMarker() playSoundFrontEnd(12) triggerServerEvent("givePlayerMoney",resourceRoot,0) end end function showMarker() if jobMarker and isElement(jobMarker) then destroyElement(jobMarker) jobMarker = nil end jobTarget = jobTarget + 1 jobMarker = createMarker(marker[jobTarget][1], marker[jobTarget][2], marker[jobTarget][3], "checkpoint", 2, 208, 100, 4) -- 208, 100, 4 if marker[jobTarget+1] then ile = marker[jobTarget+1] setMarkerTarget(jobMarker, ile[1], ile[2], ile[3]) end addEventHandler("onClientMarkerHit", jobMarker, busDriver) end addEvent("StartPociag", true) addEventHandler("StartPociag", resourceRoot, function(veh) outputChatBox("Вы начали работу!") jobVehicle = veh jobTarget = 0 showMarker() end) addEventHandler("onClientResourceStop", resourceRoot, function() if jobVehicle and getElementData(localPlayer, "gracz_praca") then setElementData(localPlayer, "gracz_praca", false) end end) addEventHandler("onClientVehicleExit", resourceRoot, function(plr, seat) if seat == 0 then if plr == localPlayer then finishJob() outputChatBox("Вы закончили работу машиниста!") end end end) это сервер: local m1 = createMarker(1720.6999511719, -1941.1999511719, 12.60000038147 , "cylinder", 1.0, 255, 245, 255) vehs = {} --createBlip ( 1720.6999511719, -1941.1999511719, 12.60000038147, 16) function removePreviousVehicles(plr) for i,v in ipairs(getElementsByType("vehicle", resourceRoot)) do local sby = getElementData(v, "zrespilGracz") if sby and sby == plr and getPedOccupiedVehicle(plr) ~= v then destroyElement(v) end end end addEvent("givePlayerMoney", true) addEventHandler("givePlayerMoney", resourceRoot, function(ile) givePlayerMoney (client, ile) end) addEventHandler("onMarkerHit", m1, function(el, md) if getElementData(el, "zrespilGracz") then --outputChatBox("NSR-Pociągi w fazie Betav1.0", el) return end if not md or getElementType(el) ~= "player" or getPedOccupiedVehicle(el) then return end local x,y,z = getElementPosition(el) local bus = createVehicle(538,1693.6170654297, -1952.9197998047, 15.241115570068, 180, 0.0, 0.4) setElementData(bus, "zrespilGracz", el) setElementData(bus, "pojazd_paliwo", 50) setElementData(bus, "pojazd_przebieg", 100) setVehicleHandling(bus, "maxVelocity", 0.1) setVehicleHandling(bus, "engineAcceleration", 2 ) setVehicleHandling(bus, "ABS", true ) warpPedIntoVehicle(el, bus) removePreviousVehicles(el) triggerClientEvent(el, "StartPociag", resourceRoot, bus) vehs[el] = bus end) addEvent("STOPP", true) addEventHandler("STOPP", resourceRoot, function() local pojazd = getPedOccupiedVehicle(localPlayer) if pojazd then destroyElement(pojazd) end end) addEvent("destroyVeh", true) addEventHandler("destroyVeh", getRootElement(), function() if vehs[source] then if isElement(vehs[source]) then destroyElement(vehs[source]) end end end) помогите пожалуйста с GUI,а то не как не открываеться и я не как не пойму почему почему