# VOLUME::SET_VOLUME_COORDS

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

## Signature

```c
BOOL SET_VOLUME_COORDS(Volume volume, float posX, float posY, float posZ);
```

## Parameters

- `volume` (`Volume`)
- `posX` (`float`)
- `posY` (`float`)
- `posZ` (`float`)

## Returns

`BOOL`

## Usage

### Lua

```lua
local retval = SetVolumeCoords(volume, posX, posY, posZ)

-- always available, by hash
local retval = Citizen.InvokeNative(0x541B8576615C33DE, volume, posX, posY, posZ, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = SetVolumeCoords(volume, posX, posY, posZ);

// by hash
const retval = Citizen.invokeNative('0x541B8576615C33DE', volume, posX + 0.0000001, posY + 0.0000001, posZ + 0.0000001, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0x541B8576615C33DE, volume, posX, posY, posZ);
```

- 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

- [VOLUME::GET_VOLUME_COORDS](https://natives.borderlinerp.com/natives/VOLUME/GET_VOLUME_COORDS.md)

*Sources: alloc8or RDR3 NativeDB.*
