# MAP::SET_GPS_FLAGS

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

## Signature

```c
void SET_GPS_FLAGS(int p0, float p1);
```

## Parameters

- `p0` (`int`)
- `p1` (`float`)

## Returns

`void`

## Description

https://alloc8or.re/rdr3/doc/enums/rage__eGpsFlags.txt

## Usage

### Lua

```lua
SetGpsFlags(p0, p1)

-- always available, by hash
Citizen.InvokeNative(0x5DE61C90DDECFA2D, p0, p1)
```

### JavaScript

```js
SetGpsFlags(p0, p1);

// by hash
Citizen.invokeNative('0x5DE61C90DDECFA2D', p0, p1 + 0.0000001);
```

### C#

```csharp
Function.Call((Hash)0x5DE61C90DDECFA2D, p0, p1);
```

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

## See also

- [MAP::CLEAR_GPS_FLAGS](https://natives.borderlinerp.com/natives/MAP/CLEAR_GPS_FLAGS.md) — Clears the GPS flags.

*Sources: alloc8or RDR3 NativeDB.*
