Sign in to follow this  

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:


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 or mp.players.local.position for their position.

  • Like 1

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.