The Lab
PED native

_ADD_PED_STAY_OUT_VOLUME

returns BOOL2 paramsbuild 1207

Adds volume to the areas ped will avoid entering, returning true on success.

Signature

C
BOOL _ADD_PED_STAY_OUT_VOLUME(Ped ped, Volume volume); // 0xE9B168527B337BF0 b1207

Parameters

#NameType
1pedPed
2volumeVolume

Facts

Facts about _ADD_PED_STAY_OUT_VOLUME
Name
_ADD_PED_STAY_OUT_VOLUME
Hash
0xE9B168527B337BF0
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0xE9B168527B337BF0, -- _ADD_PED_STAY_OUT_VOLUME
  PlayerPedId(), -- Ped ped
  0 -- Volume volume
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0xE9B168527B337BF0", // _ADD_PED_STAY_OUT_VOLUME
  PlayerPedId(), // Ped ped
  0, // Volume volume
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xE9B168527B337BF0, // _ADD_PED_STAY_OUT_VOLUME
  API.PlayerPedId(), // Ped ped
  0 // Volume volume
);
All PED natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.