Franky Posted April 20, 2009 Posted April 20, 2009 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
Gamesnert Posted April 20, 2009 Posted April 20, 2009 Last time I tried it in the nightlies I also noticed this, seems like it doesn't exist.
Brophy Posted April 20, 2009 Posted April 20, 2009 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now