Jump to content

the browser script is executed early


alienwave

Recommended Posts

  • 1 month later...
On 11/9/2022 at 5:16 PM, LT.Steiner said:

Hello after almost 2 years.

I have a question, How can I check Player is in vehicle on client-side js?!

 

I tried this:

if (mp.players.local.isInVehicle()){

         // Do something

}

 

is it true?!

Yes that should work. Also you can check if mp.players.local.vehicle is not null

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