Jump to content

Help with "setVehicleGunsEnabled"


Franky

Recommended Posts

function enableGuns ( source )

getPedOccupiedVehicle ( source )

setVehicleGunsEnabled ( theVehicle, true )

end

addCommandHandler ( "guns", getRootElement(), enableGuns )

attempt to call global 'setVehicleGunsEnabled' (a nil value)

Does this function exist? its in the wiki but i think its not working

Link to comment

Try this

function enableGuns ( source ) 
    local theVehicle = getPedOccupiedVehicle ( source ) 
    setVehicleGunsEnabled ( theVehicle, true ) 
end 
  
addCommandHandler ( "guns", enableGuns ) 

You should try it both clientside and serverside, then report the error on bugs.mtasa.com

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