GUIEditor = {
button = {},
window = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[6] = guiCreateWindow(496, 279, 383, 270, "Suszarka", false)
guiSetVisible(GUIEditor.window[6], false)
guiWindowSetSizable(GUIEditor.window[6], false)
guiSetAlpha(GUIEditor.window[6], 1.00)
GUIEditor.button[1] = guiCreateButton(99, 66, 166, 133, "We?\nsuszarke", false, GUIEditor.window[6])
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
end
)
marker = createMarker( 1568.36243, -1690.81848, 4.89063, "cylinder", 1, 0, 0, 255, 170 )
function hit(ele)
if source == marker then else return end
if getElementType( ele ) == "player" then else return end
if ele == getLocalPlayer() then else return end
if isElementWithinMarker ( ele, marker ) then else return end
guiSetVisible(GUIEditor.window[6], true)
showCursor(true)
end
addEventHandler("onClientMarkerHit", marker, hit)
function wezsuszare()
if source ~= GUIEditor.button[1] then return end
If getElementData(localPlayer, 'frakcja') == 'SAPD' then
triggerServerEvent("wezsuszare2", localPlayer)
guiSetVisible(GUIEditor.window[6], false)
showCursor(false)
else
outputChatBox(' Nie jeste? we frakcji.', 255,255,255, true)
end
end
addEventHandler("onClientGUIClick", root, wezsuszare)
Nie testowane, sprawd? i zamie? element dat? na swoj?.
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach