SET_VOLUME_SCALE
Sets the scale of volume and returns a success flag.
Signature
BOOL SET_VOLUME_SCALE(Volume volume, float scaleX, float scaleY, float scaleZ); // 0xA46E98BDC407E23D b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | volume | Volume |
| 2 | scaleX | float |
| 3 | scaleY | float |
| 4 | scaleZ | float |
Facts
| Name | SET_VOLUME_SCALE |
|---|---|
| Hash | 0xA46E98BDC407E23D |
| 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(0xA46E98BDC407E23D, -- SET_VOLUME_SCALE
0, -- Volume volume
0.0, -- float scaleX
0.0, -- float scaleY
0.0 -- float scaleZ
)
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("0xA46E98BDC407E23D", // SET_VOLUME_SCALE
0, // Volume volume
0.0, // float scaleX
0.0, // float scaleY
0.0, // float scaleZ
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xA46E98BDC407E23D, // SET_VOLUME_SCALE
0, // Volume volume
0.0f, // float scaleX
0.0f, // float scaleY
0.0f // float scaleZ
);Related VOLUME natives
- SET_VOLUME_COORDS
- SET_VOLUME_OWNER_PERSISTENT_CHARACTER
- SET_VOLUME_ROTATION
- _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_SCALE
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.