creation of a mod
-
Hello!
I wanted to create a new function for my menu, the "eject" function (it should shoot the player out of the vehicle) but I can't do it, help?
I tried this:**Ped character = Game.Player.Character; if (character.IsInVehicle()) { Vector3 velocity = character.CurrentVehicle.Velocity; character.Task.WarpOutOfVehicle(character.CurrentVehicle); character.ApplyForce((velocity * 2f) + (character.UpVector * 20f));**
just it doesn't work! gets the player out of the vehicle but does not push it in the air, maybe a function.call is missing? If so, which one? Thank you all