Jump to content

طلب


Recommended Posts

كلنكت م عرفت صراحة

لكن هذا سيرفر

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 by Guest
Link to comment

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 
  
  
) 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...