# TASK::TASK_GUARD_CURRENT_POSITION

- **Hash:** `0x4A58A47A72E3FCB4`
- **Namespace:** TASK
- **Runtime name (Lua/JS):** `TaskGuardCurrentPosition`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/TASK/TASK_GUARD_CURRENT_POSITION

## Signature

```c
void TASK_GUARD_CURRENT_POSITION(Ped ped, float p1, float p2, BOOL p3);
```

## Parameters

- `ped` (`Ped`)
- `p1` (`float`)
- `p2` (`float`)
- `p3` (`BOOL`)

## Returns

`void`

## Usage

### Lua

```lua
TaskGuardCurrentPosition(ped, p1, p2, p3)

-- always available, by hash
Citizen.InvokeNative(0x4A58A47A72E3FCB4, ped, p1, p2, p3)
```

### JavaScript

```js
TaskGuardCurrentPosition(ped, p1, p2, p3);

// by hash
Citizen.invokeNative('0x4A58A47A72E3FCB4', ped, p1 + 0.0000001, p2 + 0.0000001, p3);
```

### C#

```csharp
Function.Call((Hash)0x4A58A47A72E3FCB4, ped, p1, p2, p3);
```

- Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.

*Sources: alloc8or RDR3 NativeDB.*
