SET_VOLUME_COORDS
Moves volume to the given position and returns a success flag.
Signature
BOOL SET_VOLUME_COORDS(Volume volume, float posX, float posY, float posZ); // 0x541B8576615C33DE b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | volume | Volume |
| 2 | posX | float |
| 3 | posY | float |
| 4 | posZ | float |
Facts
| Name | SET_VOLUME_COORDS |
|---|---|
| Hash | 0x541B8576615C33DE |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x541B8576615C33DE, -- SET_VOLUME_COORDS
0, -- Volume volume
0.0, -- float posX
0.0, -- float posY
0.0 -- float posZ
)
if result then
-- ...
end// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0x541B8576615C33DE", // SET_VOLUME_COORDS
0, // Volume volume
0.0, // float posX
0.0, // float posY
0.0, // float posZ
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x541B8576615C33DE, // SET_VOLUME_COORDS
0, // Volume volume
0.0f, // float posX
0.0f, // float posY
0.0f // float posZ
);Related VOLUME natives
- SET_VOLUME_OWNER_PERSISTENT_CHARACTER
- SET_VOLUME_ROTATION
- SET_VOLUME_SCALE
- _ADD_BOX_VOLUME_TO_VOLUME_AGGREGATE
- _ADD_CYLINDER_VOLUME_TO_VOLUME_AGGREGATE
- _ADD_SPHERE_VOLUME_TO_VOLUME_AGGREGATE
- _ADD_VOLUME_TO_VOLUME_AGGREGATE
- _SET_ANTI_GRIEF_VOLUME_BLOCKS_HORSE
- _SET_ANTI_GRIEF_VOLUME_BLOCKS_PLAYER
- _SET_VOLUME_RELATIONSHIP
- DOES_VOLUME_COLLIDE_WITH_ANY_VOLUME_LOCK
- GET_VOLUME_COORDS
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.