Log in to reply
 

CheckboxEvent problem



  • If i do this:

    godmode.CheckboxEvent += (item, state) =>

    {
        if (item == godmode)
        {
            Game.Player.IsInvincible = state;
            UI.Notify($"Godmode {(state ? "enabled" : "disabled")}");
        }
        
        
        
    
        if (item == addwanted)
        {
            if (Game.Player.WantedLevel < 5) { Game.Player.WantedLevel += 1; }
            UI.Notify("Added A Wanted Level");
    

    then only the GodMode option would work but how do i let the others work to? it prob has to do with the CheckboxEvent += (item, state) =>


Log in to reply
 

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