Jump to content
RAGE Multiplayer Community

How to add properties to object "Player"


Recommended Posts

Hello everyone!

I want to add some properties to Player in server side like player.staticId or player.money. I want to do it on event "playerReady"

So, it should look something like this:

mp.events.add('playerReady', (player) => {
  let player.money = // database request
  let player.sId = // database request  
})  

How should I do it?

Edited by Novip
Link to post
Share on other sites
  • 2 weeks later...

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