From the reference libraryRedM

Player

jo_libs/modules/player/index.md

Player

Player is a module to provide optimized, cached access to common local player data.

Include Player in your script

  1. To use the Player library, just add the initiator as a shared script inside of your fxmanifest.lua file.
shared_scripts {
  '@jo_libs/init.lua'
}

  1. Add the Player module inside the fxmanifest.lua (in lowercase)
jo_libs {
  'player',
}

You can now use the library inside of your resource with the jo.player global variable.
This module has an alias: jo.pl.

Functions

Documentation for the Client side.

Back to documentation