| Property | Value |
|---|---|
| Native Name | _GET_PED_COVER_POINT_TRANSITION_STATE |
| Hash | 0x957D7E750216D74B |
| Return Type | int |
| Build | 1207 |
| Parameters | ped (Ped) |
Description: returns the active transition state of a cover point for about 2 seconds unless its peeking 1 - transition from pointing a gun to not pointing a gun 2 - transition to pointing a gun 3 - broke the window 4 - when opening a door while in cover (a prompt will show and once pressed state is changed to 4) 5 - cover transition like from one corner of a house to the other corner 6 - changing cover to cover like crossing from one side of the door to the other 7 - when the ped is facing foward with the camera, might be to detect when going from left to right 8 - when the ped is peeking through a door window etc (this will return 8 while is in peek) 9 - when a ped is aiming in crouch and enters cover (it doesnt always trigger) 10 - enters cover 12 - leaves cover 16 - changed to crouch or to standing up position
Usage
Lua (Direct):
local result = GetPedCoverPointTransitionState(ped)
Lua (Hash):
local result = Citizen.InvokeNative(0x957D7E750216D74B, ped)