Jump to content
RAGE Multiplayer Community

Why player.vehicle not work?


s2sk
 Share

Recommended Posts

Hi.

i use sample from wiki (server-side)

mp.events.addCommand('veh', (player) => {
    if (player.vehicle)
          player.outputChatBox('You are in the vehicle right now!');
    else
         player.outputChatBox('You are not in the vehicle right now!');
});

 

and... this not work... when i am in vehicle - say in chat "You are not in the vehicle right now!"

 

wtf?

Wpq1Swe.jpg

Edited by s2sk
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
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...