コード例 #1
0
 static public void ReceiveRevive(string serializedEventModel)
 {
     try {
         TriggerEventForPlayersModel eventModel = Helpers.MsgPack.Deserialize <TriggerEventForPlayersModel>(serializedEventModel);
         DeathHandler.RevivePlayer();
         DamageBitFlags.ClearAllDamageFlags(Game.PlayerPed);
         Function.Call(Hash.DECOR_SET_BOOL, Game.PlayerPed.Handle, "Ped.IsIncapacitated", false);
     }
     catch (Exception ex) {
         Log.Error($"ReceiveRevive ERROR: {ex.Message}");
     }
 }