Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- addEvent("schowajnw", true)
- GUIEditor = {
- button = {},
- window = {},
- label = {}
- }
- GUIEditor.window[1] = guiCreateWindow(487, 295, 417, 123, "JOB / PRACA", false)
- guiWindowSetSizable(GUIEditor.window[1], false)
- GUIEditor.label[1] = guiCreateLabel(75, 23, 293, 16, "Czy chcesz pracować jako pracownik urzędu?", false, GUIEditor.window[1])
- guiSetFont(GUIEditor.label[1], "default-bold-small")
- GUIEditor.label[2] = guiCreateLabel(71, 49, 293, 16, "Do you want to work as an employee of the office?", false, GUIEditor.window[1])
- guiSetFont(GUIEditor.label[2], "default-bold-small")
- tak = guiCreateButton(9, 74, 111, 39, "YES / TAK", false, GUIEditor.window[1])
- GUIEditor.button[2] = guiCreateButton(296, 75, 111, 38, "NO / NIE", false, GUIEditor.window[1])
- guiSetVisible(GUIEditor.window[1], false)
- guiWindowSetSizable(GUIEditor.window[1], false)
- function schowajnawejscie()
- guiSetVisible(GUIEditor.window[1], false)
- end
- addEventHandler("schowajnw", root, schowajnawejscie)
- local czyPostawiony = false
- local pedmarker
- addEvent("hitek", true)
- addEvent("kasa", true)
- addEventHandler("onClientResourceStart",resourceRoot,
- function ()
- pedmarker = createMarker (1481.05457, -1771.39673, 17.6, "cylinder", 1, 255, 255, 0)
- outputDebugString(tostring(pedmarker),3)
- addEventHandler("onClientMarkerHit", pedmarker, pytaj)
- end
- )
- function pytaj()
- guiSetVisible(GUIEditor.window[1], true)
- showCursor(true)
- end
- local rozpoczal = false
- function powejsciu(player)
- if player == getLocalPlayer() then
- end
- if czyPostawiony == false then
- end
- if rozpoczal == false then
- end
- pedblip = createBlip( -1957.61072, 722.81702, 45.44531, 62, 0, 0, 0, 255)
- ped = createPed(147, -1958.28430, 721.60437, 46.6) -- Creates a ped
- pracomarker = createMarker( -1958.30566, 722.31940, 44.6, "cylinder", 1, 255, 255, 0, 170)
- czyPostawiony = true
- rozpoczal = true
- showCursor(false)
- exports["notifications"]:showBox("info","Zatrudniłeś się w biurze. Twoim zadaniem jest dostarczenie dokumentów do urzędnika miasta San Fierro. Został on oznaczony zieloną ikoną człowieka na radarze. Niestety, musisz użyć prywatnego pojazdu. | Hired in the office. Your task is to provide the documents to the clerk of the city of San Fierro. It has been indicated by a green icon on the radar man. Sorry, you need to use a personal vehicle.")
- guiSetVisible(GUIEditor.window[1], false)
- addEventHandler("onClientMarkerHit", pracomarker, kasa)
- addEventHandler("onClientMarkerHit", pracomarker, delejt)
- end
- addEventHandler("onClientGUIClick", tak, powejsciu, false)
- function kasa(player)
- if player == getLocalPlayer() then
- triggerServerEvent("hajsy", resourceRoot)
- exports["notifications"]:showBox("info","Dostarczyłeś dokumenty oraz otrzymałeś wynagrodzenie w wysokości $600. Wracaj do miasta, zadanie zakończone. Następne wykonanie tej pracy będzie dostępne dopiero po następnym zalogowaniu. | You provided the documents and receive a salary of $ 600. Go back to the city, the task completed. Following the execution of this work will be possible only after the next login.")
- if isElement ( pedblip ) and isElement ( ped ) then
- destroyElement ( pedblip )
- destroyElement ( ped )
- destroyElement ( pracomarker )
- czyPostawiony = false
- rozpoczal = false
- end
- end
- end
- function delejt()
- removeEventHandler("onClientMarkerHit", source, kasa)
- end
- function dopelniacz()
- guiSetVisible(GUIEditor.window[1], false)
- showCursor(false)
- end
- addEventHandler("onClientGUIClick", tak, dopelniacz, false)
- addEventHandler("onClientGUIClick", GUIEditor.button[2], dopelniacz, false)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement