addEvent("tr", true)
addEventHandler("tr", root,
function()
guiSetVisible(GUIEditor.window[1],true)
end
)
addEventHandler("onClientGUIClick", root,
function()
if source == GUIEditor.button[3] then
guiSetVisible(GUIEditor.window[1],false)
showCursor(false)
end
end
)
bindKey("m","down",
function ( )
showCursor ( not isCursorShowing ( ) )
end
)
addEventHandler("onClientGUIClick", root,
function()
if source == GUIEditor.button[1] then
triggerServerEvent("slap", localPlayer)
end
end
)
addEventHandler("onClientGUIClick", root,
function()
if source == GUIEditor.button[2] then
if isPedInVehicle(localPlayer) then
triggerServerEvent("veh",localPlayer)
else
outputChatBox(" اللاعب لا يملك سيارة ",255,0,0,true)
end
end
end
)