Lista de stats del jugador
Busca entre más de 3.000 nombres de stats de GTA Online conocidos (MP0_, MP1_ y globales) con su tipo de dato y hash, listos para StatGetInt / StatSetInt y compañía.
Esta herramienta y sus notas están en inglés por ahora.
Esta herramienta está fuera de servicio por mantenimiento
La apagamos un momento. El resto del sitio sigue funcionando y la herramienta vuelve sola.
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 becomes MP0_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
| Type | Read | Write |
|---|---|---|
int, u8, u16, u32 | StatGetInt | StatSetInt |
s64, u64 | StatGetInt (32-bit range) | StatSetInt, StatSetCurrentPosixTime |
float | StatGetFloat | StatSetFloat |
bool | StatGetBool | StatSetBool |
string | StatGetString | StatSetString |
label | n/a | StatSetGxtLabel |
userid | StatGetUserId | StatSetUserId |
pos | StatGetPos | StatSetPos |
date | StatGetDate | StatSetDate |
packed | GetPackedStatBoolCode / IntCode | SetPackedStatBoolCode / 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
saveargument of the setters can betrue; 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.
Más herramientas de referencias
Mapa interactivo
Todo el mapa de GTA V en tu navegador: un mapa 2D con coordenadas y un mundo 3D que puedes recorrer con una freecam o a pie.
Explorador de animaciones
Reproduce animaciones de GTA V en un ped freemode en 3D. Todos los diccionarios y clips del juego, más escenas sincronizadas de dos peds con sus props.
Explorador de cinemáticas
Todas las cinemáticas de GTA V con sus actores, duración, cortes de cámara y subtítulos, más una vista previa 3D de las que exportamos.
