Skip to content

Player Stats List

Search 3,000+ known GTA Online stat names (MP0_, MP1_ and global) with their data type and hash, ready for StatGetInt / StatSetInt and friends.

ReferencesStatsRead the docs
Loading stats…

Using stats in FiveM

Stats are addressed by the joaat hash of their full name. Per character stats need the character slot prefix,MP0_ for the first character and MP1_ for the second, so STAMINA becomesMP0_STAMINA. Global stats (bank balance, MPPLY_ stats…) are used as they are.

-- Max out the skill bars on spawn
AddEventHandler("playerSpawned", function()
    for _, name in ipairs({ "STAMINA", "STRENGTH", "LUNG_CAPACITY", "SHOOTING_ABILITY",
                            "WHEELIE_ABILITY", "FLYING_ABILITY", "STEALTH_ABILITY" }) do
        StatSetInt(GetHashKey("MP0_" .. name), 100, true)
    end
end)

Which native for which type

TypeReadWrite
int, u8, u16, u32StatGetIntStatSetInt
s64, u64StatGetInt (32-bit range)StatSetInt, StatSetCurrentPosixTime
floatStatGetFloatStatSetFloat
boolStatGetBoolStatSetBool
stringStatGetStringStatSetString
labeln/aStatSetGxtLabel
useridStatGetUserIdStatSetUserId
posStatGetPosStatSetPos
dateStatGetDateStatSetDate
packedGetPackedStatBoolCode / IntCodeSetPackedStatBoolCode / IntCode

Things to know

  • FiveM has no Rockstar cloud save. Stats live on the client and reset when the game restarts, so set the ones you care about every time the player spawns and store the real values in your own database.
  • Many stats only matter to GTA Online scripts and do nothing on a FiveM server. Skill stats (stamina, shooting, driving…) do work.
  • The save argument of the setters can be true; it does nothing harmful on FiveM.

Data: Vespura (tomgrobbe.com), generated from the game's MP stat definitions. It is a generated list and may contain mistakes.