Jump to content

طلب


Recommended Posts

Posted

السلام عليكم عندي زر ابي اذا ضغطته يعطي اللوان للسيارة بأستمرار اللوان متشكله ي ليت تفيدونا ..

Posted
ممكن جاهز ؟

:]

طيب على الاقل حاول

ونصحح لك -_____-"

كل مره بتطلب جاهز ماراح تتعلم ولا راح تكسب خبره ولو كانت بسيطه ولا اي شيء

Posted (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 by Guest
Posted

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 
  
  
) 

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...