Jump to content

[Help]executeCommandHandler


raynner

Recommended Posts

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

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