Kopra Posted November 9, 2022 Posted November 9, 2022 That should work, if it doesn't you can use if (mp.players.local.vehicle != null) { // your code }
Rudolf Cicko Posted December 18, 2022 Posted December 18, 2022 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
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