Log in to reply
 

What is the Function For Setting Skills? (Can't Find it In Game.Player/.Character)



  • I can't seem to find how to set/modify player skills like Stamina, Driving or Shooting.

    I have looked through Game.Player & Game.Player.Character and I'm not sure where else to look.

    Thanks for all help.



  • We can mark this as Solved I think.

    The Stats:
    string Stamina = "SP0_STAMINA";
    string Shooting = "SP0_SHOOTING_ABILITY";
    string Strength = "SP0_STRENGTH";
    string Stealth = "SP0_STEALTH_ABILITY";
    string Flying = "SP0_FLYING_ABILITY";
    string Wheelie = "SP0_WHEELIE_ABILITY";
    string Lung = "SP0_LUNG_CAPACITY";

    To set the stats for X character change the number after SP.
    PlayerZero = Micheal = SP0
    PlayerOne = Franklin = SP1
    PlayerTwo = Trevor = SP2

    The Native:
    StatSetInt(GetHashKey("SP0_SHOOTING_ABILITY"), 100, false);

    Miscs
    SP0_TOTAL_CASH
    BANK_BALANCE
    MP0_WALLET_BALANCE
    ...

    You can see all stats in common.rpf/data/spstatssetup.xml and mpstatssetup.xml.


Log in to reply
 

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.