Sign in to follow this  
FrankieL

clientside JS, access player properties

Recommended Posts

hey everyone, converting GTA:N server to Rage, and client scripts are giving me issues

on the wiki I can't find anything similar to GTA:N's getLocalPlayer(), which was used on the client, to get all properties, name, location, etc.

how can I access the player object, all their properties & methods listed here:

https://wiki.rage.mp/index.php?title=Client-side_functions#Player

thanks

Share this post


Link to post
Share on other sites

getLocalPlayer just sounds like you want the player object which is mp.players.local so if you wanted the players name it'd be mp.players.local.name or mp.players.local.position for their position.

  • Like 1

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.