Me <BadgeClient/>
:::warning This module is now deprecated. Please use the player module instead. :::
A library to save in the client cache the value of PlayerPedId() and his location. These values are updated every 1000ms by default. Very helpfull to optimize the resource
jo.forceUpdateMe() > Syntax
jo.forceUpdateMe()
jo.forceUpdateMe() > Example
print(jo.meCoords)
jo.forceUpdateMe()
print(jo.meCoords)
jo.me
Return the last cached PlayerPedId() value
Example
print(jo.me, PlayerPedId())
jo.meCoords
Return the last cached location of the player
Example
print(jo.meCoords, GetEntityCoords(PlayerPedId()))
jo.meIsMale
Return if the player is a male or a female
jo.meIsMale > Example
print(jo.meIsMale, IsPedMale(PlayerPedId()))
jo.mePlayerId
Return the last cached PlayerId() of the player
Example
print(jo.mePlayerId, PlayerId())
jo.meServerId
Return the last cached GetPlayerServerId(PlayerId()) of the player
Example
print(jo.meServerId, GetPlayerServerId(PlayerId()))
jo.updateMeTimer() > Syntax
jo.updateMeTimer(value)
Parameters
value : integer
Duration in ms between each update of values
jo.updateMeTimer() > Example
--update less often jo.me & jo.meCoords : from 1s to 2s
jo.updateMeTimer(2000)