marker = createMarker(2482.35718, -1658.45166, 13.33557, 'cylinder', 2.0, 255, 170, 0, 150)
function hit(hit)
if getElementType(hit) ~= "player" then return end
local veh = getPedOccupiedVehicle(hit)
if not veh then return end
if hit == localPlayer then
guiSetVisible(GUIEditor.window[1], true)
showCursor(true)
end
end
addEventHandler("onClientMarkerHit", marker, hit)
GUIEditor = {
button = {},
window = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(500, 179, 590, 700, "", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetAlpha(GUIEditor.window[1], 0.83)
Gui3 = guiCreateLabel(240, 80, 150, 100, "Masa pojazdu: 1200kg", false, GUIEditor.window[1])
Gui3 = guiCreateLabel(255, 150, 150, 100, "Ilo?? bieg?w: 5", false, GUIEditor.window[1])
Gui3 = guiCreateLabel(215, 220, 190, 100, "Sztywno?? zawieszenia: 99.80%", false, GUIEditor.window[1])
Gui3 = guiCreateLabel(220, 290, 210, 100, "Promie? skr?tu: 35.00 stopni", false, GUIEditor.window[1])
Gui3 = guiCreateLabel(205, 360, 210, 100, "Pr?dko?? maksymalna: ", false, GUIEditor.window[1])
Gui3 = guiCreateLabel(220, 430, 210, 100, "Przyspieszenie: 3s-100km/h", false, GUIEditor.window[1])
Gui3 = guiCreateLabel(240, 500, 210, 100, "Spr??arka: ON/OFF", false, GUIEditor.window[1])
guiSetFont(Gui3, "default-bold-small")
GUIEditor.button[1] = guiCreateButton(25, 60, 115, 60, "Masa+", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[2] = guiCreateButton(450, 60, 115, 60, "Masa-", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[3] = guiCreateButton(25, 130, 115, 60, "Ilo?? bieg?w+", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[4] = guiCreateButton(450, 130, 115, 60, "Ilo?? bieg?w-", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[5] = guiCreateButton(25, 200, 115, 60, "Sztywno?? zawieszenia+", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[6] = guiCreateButton(450, 200, 115, 60, "Sztywno?? zawieszenia-", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[7] = guiCreateButton(25, 270, 115, 60, "Promie? skr?tu+", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[8] = guiCreateButton(450, 270, 115, 60, "Promie? skr?tu-", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[8], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[9] = guiCreateButton(25, 340, 115, 60, "Pr?dko?? maksymalna+", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[9], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[10] = guiCreateButton(450, 340, 115, 60, "Pr?dko?? maksymalna-", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[10], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[11] = guiCreateButton(25, 410, 115, 60, "Przyspieszenie+", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[11], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[12] = guiCreateButton(450, 410, 115, 60, "Przyspieszenie-", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[12], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[13] = guiCreateButton(25, 480, 115, 60, "Spr??arka+", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[13], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[14] = guiCreateButton(450, 480, 115, 60, "Spr??arka-", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[14], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[69] = guiCreateButton(62, 600, 460, 81, "Zamknij okno", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[69], "NormalTextColour", "FFAAAAAA")
end
)
addEventHandler("onClientResourceStart",resourceRoot,
function()
guiSetVisible(GUIEditor.window[1],false)
end
)