Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[Skrypt napisany przez Lukasz; ReedLeed | Do użycia na serwerze OldGaming]]
- local screenW, screenH = guiGetScreenSize()
- okno = guiCreateWindow((screenW - 366) / 2, (screenH - 369) / 2, 366, 369, "Mechanik samochodowy", false)
- guiWindowSetSizable(okno, false)
- napraw = guiCreateButton(42, 261, 132, 98, "NAPRAW", false, okno)
- guiSetProperty(napraw, "NormalTextColour", "FFAAAAAA")
- wyjdz = guiCreateButton(198, 261, 132, 98, "WYJDŹ", false, okno)
- guiSetProperty(wyjdz, "NormalTextColour", "FFAAAAAA")
- tekst = guiCreateLabel(60, 65, 287, 220, "---------------------------------------------------------------\n Aby naprawić samochód, kliknij \"NAPRAW\"\n\n Za naprawe zapłacisz \"75$\"\n---------------------------------------------------------------\n\n\n---------------------------------------------------------------\n Aby zrezygnować z naprawy, kliknij \"WYJDŹ\"\n---------------------------------------------------------------", false, okno)
- local mech = createMarker (-2508.28, 2360.95, 5.04-1, "cylinder", 3, 255, 255,255, 170)
- guiSetVisible(okno,false)
- guiSetVisible(buton,false)
- addEventHandler ( "onClientMarkerHit", mech,function (el,md)
- if el ~= localPlayer or not md then return end
- if not getPedOccupiedVehicle(el) then return end
- guiSetVisible(okno,true)
- guiSetVisible(napraw,true)
- guiSetVisible(wyjdz,true)
- showCursor(true)
- end)
- addEventHandler ( "onClientMarkerLeave", mech,function (el,md)
- if el ~= localPlayer or not md then return end
- guiSetVisible(okno,false)
- guiSetVisible(napraw,false)
- guiSetVisible(wyjdz,false)
- end)
- addEventHandler("onClientGUIClick", wyjdz,function ()
- guiSetVisible(okno,false)
- guiSetVisible(napraw,false)
- guiSetVisible(wyjdz,false)
- showCursor(false)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement