Client
---
---
addEventHandler("onClientGUIClick",root,
function()
if source == bbb then
triggerServerEvent("ooo",localPlayer)
end
end
)
server
addEvent("ooo",true)
addEventHandler("ooo",root,
function ()
if not isPlayerInVehicle(source) then outputChatBox("يجب ان تكون في السياره",source,0,255,0) return end
local vr = getPedOccupiedVehicle(source)
setTimer ( function()
setVehicleColor(vr,math.random( 255 ), math.random( 255 ), math.random( 255 ))
end,3000,0)
end
)