Jump to content

Move it to Trash-Can, please.


pejczi

Recommended Posts

try

local sirenObject = {} 
  
function objectSiren ( thePlayer ) 
 local theVehicle = getVehicleController(thePlayer) 
  if theVehicle then 
if (getVehicleSirensOn ( theVehicle ) == true) then 
sirenObject[thePlayer] = createObject ( 10000,0,0,4 ) 
attachElements ( sirenObject[thePlayer] , theVehicle, -0.4,-0.1,0.8 ) 
else 
destroyElement(sirenObject[thePlayer]) 
end 
end 
end 
  
function StartBindKey() 
bindKey(source,"h","down",objectSiren) 
end 
addEventHandler("onPlayerJoin",root,StartBindKey) 
  

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