* جرب ذذ طيب
addEventHandler ("onClientGUIClick", root, function ()
local x,y,z = getElementPosition(localPlayer)
if ( source == GUIEditor_Button[1] ) then
triggerServerEvent("cool", localPlayer)
outputChatBox("سياره")
elseif ( source == GUIEditor_Button[3] ) then
triggerServerEvent("coll", localPlayer)
outputChatBox("طائرة")
elseif ( source == GUIEditor_Button[4] ) then
triggerServerEvent("col", localPlayer)
outputChatBox("دراجة")
elseif ( source == GUIEditor_Button[5] ) then
triggerServerEvent("cooll", localPlayer)
outputChatBox("لقارب")
elseif ( source == GUIEditor_Button[6] ) then
triggerServerEvent("coool", localPlayer)
outputChatBox("لقارب")
elseif ( source == GUIEditor_Button[7] ) then
triggerServerEvent("ccol", localPlayer)
outputChatBox("دراجه كبيرة")
end
end)
addEvent("cool", true)
addEventHandler("cool", root,
function ()
vehh = createVehicle ( 429, x,y,z )
warpPedIntoVehicle ( source, vehh )
end
)
addEvent("coll", true)
addEventHandler("coll", root,
function ()
veehh = createVehicle ( 487, x,y,z )
warpPedIntoVehicle ( source, veehh )
end
)
addEvent("col", true)
addEventHandler("col", root,
function ()
veeh = createVehicle ( 481, x,y,z )
warpPedIntoVehicle ( source, veeh )
end
)
addEvent("cooll", true)
addEventHandler("cooll", root,
function ()
veesh = createVehicle ( 595, x,y,z )
warpPedIntoVehicle ( source, veesh )
end
)
addEvent("coool", true)
addEventHandler("coool", root,
function ()
vesh = createVehicle ( 473, x,y,z )
warpPedIntoVehicle ( source, vesh )
end
)
addEvent("ccol", true)
addEventHandler("ccol", root,
function ()
veshh = createVehicle ( 429, x,y,z )
warpPedIntoVehicle ( source, veshh )
end
)