_SET_AMBIENT_ZONE_POSITION
Moves the ambient audio zone ambientZone to the given position and heading.
Signature
void _SET_AMBIENT_ZONE_POSITION(const char* ambientZone, float x, float y, float z, float heading); // 0x3743CE6948194349 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ambientZone | const char* |
| 2 | x | float |
| 3 | y | float |
| 4 | z | float |
| 5 | heading | float |
Facts
| Name | _SET_AMBIENT_ZONE_POSITION |
|---|---|
| Hash | 0x3743CE6948194349 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0x3743CE6948194349, -- _SET_AMBIENT_ZONE_POSITION
"text", -- const char* ambientZone
0.0, -- float x
0.0, -- float y
0.0, -- float z
0.0 -- float heading
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x3743CE6948194349", // _SET_AMBIENT_ZONE_POSITION
"text", // const char* ambientZone
0.0, // float x
0.0, // float y
0.0, // float z
0.0 // float heading
);Function.Call((Hash)0x3743CE6948194349, // _SET_AMBIENT_ZONE_POSITION
"text", // const char* ambientZone
0.0f, // float x
0.0f, // float y
0.0f, // float z
0.0f // float heading
);Related AUDIO natives
- SET_AMBIENT_ZONE_LIST_STATE
- SET_AMBIENT_ZONE_LIST_STATE_PERSISTENT
- SET_AMBIENT_ZONE_STATE
- SET_AMBIENT_ZONE_STATE_PERSISTENT
- CLEAR_AMBIENT_ZONE_LIST_STATE
- CLEAR_AMBIENT_ZONE_STATE
- PLAY_AMBIENT_SPEECH_FROM_POSITION_NATIVE
- SET_AMBIENT_VOICE_NAME
- _SET_AUDIO_SCENESET
- _SET_SOUND_RELATIONSHIP_ON_PED
- _SET_VARIABLE_ON_SOUND_WITH_ID
- _SET_VARIABLE_ON_SOUND_WITH_NAME
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.