alienwave Posted March 17, 2019 Share Posted March 17, 2019 (edited) i made command, but when i try it, console returns this: TypeError: player.vehicle.setHandling('fDriveInertia", parseInt(a)); is not a function. What should i do? mp.events.addCommand('engine', (player, fullText, a) => { player.vehicle.setHandling("fDriveInertia", parseInt(a)); }); Edited March 17, 2019 by alienwave Link to comment Share on other sites More sharing options...
RSX Fenrir Posted April 8, 2019 Share Posted April 8, 2019 (edited) It means the property setHandling of object vehicle is not a function. Edit: I'm going to guess that you should create an event in client side code that evokes player.vehicle.setHandling, and callRemote from the command that is registered in server. (I'm new to this, so the details might be off). Edited April 8, 2019 by RSX Fenrir Link to comment Share on other sites More sharing options...
Flashrex Posted April 8, 2019 Share Posted April 8, 2019 (edited) Try: mp.events.addCommand('engine', (player, fullText, a) => { mp.players.local.vehicle.setHandling("fDriveInertia", parseInt(a)); }); Edited April 8, 2019 by Flashrex Link to comment Share on other sites More sharing options...
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