tomybk 2 Posted September 26 Hello everyone, if i put code for changing player Game.Player.ChangeModel("G_F_Y_VAGOS_01_P"); On player death i have game error, how i can fix this to on death player change back to Michael or any other game character? Quote Share this post Link to post Share on other sites
tomybk 2 Posted October 7 over a week ago this post maded, and over 700 people see the post and answers = zero Quote Share this post Link to post Share on other sites
notphoon 0 Posted October 9 You need to watch for the death event, then intercept it and replace the model. On tick you would use if (Game.Player.Character.IsDead) { if (!Game.Player.Character.isMainCharacter()) Game.Player.ChangeModel(PedHash.Michael); } isMainCharacter is an extension method, you can place this in a class and it will show up with intellisense when you have a ped entitiy public static bool isMainCharacter(this Ped myPed) { int PedType = Function.Call<int>(Hash.GET_PED_TYPE, myPed); if (PedType == 0 || PedType == 1 || PedType == 2) { return true; } else { return false; } } Some trainers will do this for you including some versions of the enhanced native trainer. Quote Share this post Link to post Share on other sites