How to detect if player is shot? c#
-
How to detect if player is shot? c#
-
@M8T The only functions you have for scripting are found in the natives database. It is searchable but not well documented. There doesn't appear to be a function specifically for being shot but you might use health or injuries instead, for example
BOOL IS_PED_INJURED(Ped ped) // 0x84A2DD9AC37C35C1 0x2530A087 b323
Don't expect much support here because the experts in scripting are long gone.
-
Thanks! il see what i can do. I tried using if (Game.Player.Character.IsInjured == true){//something;} But that does not work.
-
-
@M8T @JohnFromGWN
You can also do https://docs.fivem.net/natives/?_0x2D343D2219CD027A.
-
@IAmJFry good to know, thanks