CLEO Help player's feet on the ground

CLEO related

habinabi

Active member
Joined
Nov 10, 2019
Messages
51
Reaction score
2
Location
Czech Republic
I don't know if I understand you correctly, but if you want the script to work for you when you're only on the ground, use it.
for if you are out of the vehicle
PHP:
0818:   not actor $PLAYER_ACTOR in_air
for if you are in a vehicle
PHP:
01F3:   not car $HJ_PLAYER_CAR in_air
 

_Safa

Well-known member
Joined
Sep 22, 2019
Messages
297
Reaction score
103
Location
UGBASE
Most reliable way to check this is probably by reading out CPed struct + 0x46D.

If value is 32 = Ped is idle / feet is on ground.
If value is 34 = Ped is in the air.
 
Top