Oyuncu Stat Listesi
Bilinen 3.000+ GTA Online stat ismini (MP0_, MP1_ ve global) veri tipi ve hash'iyle ara, StatGetInt / StatSetInt ve benzerleri için hazır.
Bu araç ve notları şimdilik İngilizce.
Bu araç bakım nedeniyle kapalı
Kısa bir süreliğine kapattık. Sitenin geri kalanı çalışmaya devam ediyor ve araç kendiliğinden geri gelecek.
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.
Diğer referanslar araçları
İnteraktif Harita
Tüm GTA V haritası tarayıcında: koordinatlı bir 2D harita ve içinde freecam ile ya da yürüyerek dolaşabileceğin bir 3D dünya.
Animasyon Tarayıcı
GTA V animasyonlarını freemode ped üzerinde 3D olarak oynat. Oyundaki bütün sözlükler ve klipler, ayrıca iki pedli senkron sahneler ve propları.
Ara Sahne Tarayıcısı
Her GTA V ara sahnesi: oyuncuları, süresi, kamera kesmeleri ve altyazıları, ayrıca dışa aktardıklarımızın 3D önizlemesi.
