Jump to content

Vehicles Engine


Recommended Posts

Hi everyone. My question is the following: Is there something so that the engines of the vehicles do not automatically turn on / off, if not controlled by the user? The only thing that I have done is that, if a player gets into the vehicle and the engine is "false" it does a "setEngineOn (false)" to physically turn off the engine.

Edited by Juance
Link to comment
Share on other sites

I solved the client side like this

    'playerEnterVehicle': (vehicle, seat) => {
        if (mp.players.local.getSeatIsTryingToEnter() == -1 || vehicle.getIsEngineRunning()) {


Edited by JensDerZocker
Link to comment
Share on other sites

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