Jump to content

problem


Whit3

Recommended Posts

What's Wrong?

Error : GetElementModel got boolean

Server Side

local activated = 0 
  
function disableFireForH( theVehicle, seat ) 
local id = getElementModel ( theVehicle ) 
         if activated == 0 then 
   if id == 425 then 
        toggleControl (id, "vehicle_fire", true)  
    end 
end 
end 
setTimer(disableFireForH , 100,0) 
  
  
  
function disablefire() 
activated = 1 
outputChatBox("Hunter Fire Disabled") 
end 
addCommandHandler("df",disablefire) 
  
  
function activatefire() 
activated = 0 
outputChatBox("Hunter Fire Activated") 
end 
addCommandHandler("af",activatefire) 
  
  
  

Edited by Guest
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...