Jump to content

[Help]executeCommandHandler


raynner

Recommended Posts

Posted

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 

don´t is necessari

Posted
Quote

Note: You can only execute commands created by Lua. You cannot execute MTA harcoded commands due to security reasons.

Use warpPedIntoVehicle instead

skype : 011101000110111000110110011001010110110000110000001110010011000000111001

Posted

You can try using setControlState. If the player is away from the vehicle, force him to follow until he's close to police car.

Please do not PM me with scripting related question nor support, use the forums instead.

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

don´t is necessari

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