raynner Posted July 1, 2017 Share Posted July 1, 2017 Hello everyone, thanks for the help right away. sorry for my English Well I was creating a police work code and I had everything in mind until I came across a problem. I expected to use executeCommandHandler ( "enter_passenger", theStuck ) To make the inmate (handcuffed) after not having control over his character with toggleAllControls (). Embark on a vehicle as a passenger, because the policeman did the same. However executeCommandHandler() I found in the wiki that it is not possible to execute MTA commands. Some idea beyond warpPedIntoVehicle(). Nota: script to RPG Link to comment
Sticmy Posted July 1, 2017 Share Posted July 1, 2017 Have you given permissions to the admin panel? If it does not work, use it : resource.script in the group ACL Name "Admin" Link to comment
</Mr.Tn6eL> Posted July 2, 2017 Share Posted July 2, 2017 Quote Note: You can only execute commands created by Lua. You cannot execute MTA harcoded commands due to security reasons. Use warpPedIntoVehicle instead Link to comment
DNL291 Posted July 3, 2017 Share Posted July 3, 2017 You can try using setControlState. If the player is away from the vehicle, force him to follow until he's close to police car. Link to comment
raynner Posted July 3, 2017 Author Share Posted July 3, 2017 16 hours ago, DNL291 said: You can try using setControlState. If the player is away from the vehicle, force him to follow until he's close to police car. It's a good idea but it does not work was my initial idea. Mta Controls only function with the troggleControl and troggleAllControls functions ... Link to comment
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