# PED::SPAWNPOINTS_START_SEARCH

- **Hash:** `0x2DF9038C90AD5264`
- **Namespace:** PED
- **Runtime name (Lua/JS):** `SpawnpointsStartSearch`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PED/SPAWNPOINTS_START_SEARCH

## Signature

```c
void SPAWNPOINTS_START_SEARCH(float x, float y, float z, float width, float p4, int spawnpointsFlag, float p6, int duration, float p8);
```

## Parameters

- `x` (`float`)
- `y` (`float`)
- `z` (`float`)
- `width` (`float`)
- `p4` (`float`)
- `spawnpointsFlag` (`int`)
- `p6` (`float`)
- `duration` (`int`)
- `p8` (`float`)

## Returns

`void`

## Description

Params: p4 = 35.f, duration = 5000 in R* Scripts

## Usage

### Lua

```lua
SpawnpointsStartSearch(x, y, z, width, p4, spawnpointsFlag, p6, duration, p8)

-- always available, by hash
Citizen.InvokeNative(0x2DF9038C90AD5264, x, y, z, width, p4, spawnpointsFlag, p6, duration, p8)
```

### JavaScript

```js
SpawnpointsStartSearch(x, y, z, width, p4, spawnpointsFlag, p6, duration, p8);

// by hash
Citizen.invokeNative('0x2DF9038C90AD5264', x + 0.0000001, y + 0.0000001, z + 0.0000001, width + 0.0000001, p4 + 0.0000001, spawnpointsFlag, p6 + 0.0000001, duration, p8 + 0.0000001);
```

### C#

```csharp
Function.Call((Hash)0x2DF9038C90AD5264, x, y, z, width, p4, spawnpointsFlag, p6, duration, p8);
```

- 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.*
