w7sH Posted June 18, 2016 Posted June 18, 2016 السلام عليكم عندي زر ابي اذا ضغطته يعطي اللوان للسيارة بأستمرار اللوان متشكله ي ليت تفيدونا ..
Ahmed Ly Posted June 18, 2016 Posted June 18, 2016 --Client "onClientGUIClick" triggerServerEvent --Server addEvent addEventHandler setTimer math.random setVehicleColor
Mr.R Posted June 18, 2016 Posted June 18, 2016 ممكن جاهز ؟:] طيب على الاقل حاول ونصحح لك -_____-" كل مره بتطلب جاهز ماراح تتعلم ولا راح تكسب خبره ولو كانت بسيطه ولا اي شيء
w7sH Posted June 18, 2016 Author Posted June 18, 2016 (edited) كلنكت م عرفت صراحة لكن هذا سيرفر addEvent( '', true ) addEventHandlent('', root, function() if not isElement(vehicle[source]) then return triggerClientEvent( client, , client) end setVehicleColor(vehicle[source], math.random(0,255), math.random(0,255), math.random(0,255)) end ) Edited June 18, 2016 by Guest
Ahmed Ly Posted June 18, 2016 Posted June 18, 2016 Client addEventHandler("onClientGUIClick",root, function() if source == bbb then playSoundFrontEnd(20) 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 )
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now