# AICOVERPOINT::_GET_PED_COVER_POINT_TRANSITION_STATE

- **Hash:** `0x957D7E750216D74B`
- **Namespace:** AICOVERPOINT
- **Runtime name (Lua/JS):** `GetPedCoverPointTransitionState`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/AICOVERPOINT/_GET_PED_COVER_POINT_TRANSITION_STATE

## Signature

```c
int _GET_PED_COVER_POINT_TRANSITION_STATE(Ped ped);
```

## Parameters

- `ped` (`Ped`)

## Returns

`int`

## Description

*Source: VORPCORE RDR3natives*

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

```lua
local retval = GetPedCoverPointTransitionState(ped)

-- always available, by hash
local retval = Citizen.InvokeNative(0x957D7E750216D74B, ped, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = GetPedCoverPointTransitionState(ped);

// by hash
const retval = Citizen.invokeNative('0x957D7E750216D74B', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0x957D7E750216D74B, ped);
```

- The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works.

*Sources: alloc8or RDR3 NativeDB, VORPCORE RDR3natives.*
