The Lab
VOLUME native

_CREATE_VOLUME_LOCK_ATTACHED_TO_ENTITY

returns Volume4 paramsbuild 1207

Creates a volume lock of radius that follows entity and returns its handle.

Signature

C
Volume _CREATE_VOLUME_LOCK_ATTACHED_TO_ENTITY(Entity entity, float radius, int flag, Any p3); // 0xF383E96C4904DF0C b1207

Parameters

#NameType
1entityEntity
2radiusfloat
3flagint
4p3Any

Facts

Facts about _CREATE_VOLUME_LOCK_ATTACHED_TO_ENTITY
Name
_CREATE_VOLUME_LOCK_ATTACHED_TO_ENTITY
Hash
0xF383E96C4904DF0C
Namespace
Returns
Volume
Game build
1207

Examples

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

Lua
local volume = Citizen.InvokeNative(0xF383E96C4904DF0C, -- _CREATE_VOLUME_LOCK_ATTACHED_TO_ENTITY
  PlayerPedId(), -- Entity entity
  0.0, -- float radius
  0, -- int flag
  0, -- Any p3
  Citizen.ResultAsInteger()
)
print(volume)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const volume = Citizen.invokeNative("0xF383E96C4904DF0C", // _CREATE_VOLUME_LOCK_ATTACHED_TO_ENTITY
  PlayerPedId(), // Entity entity
  0.0, // float radius
  0, // int flag
  0, // Any p3
  Citizen.resultAsInteger()
);
console.log(volume)
C#
int volume = Function.Call<int>((Hash)0xF383E96C4904DF0C, // _CREATE_VOLUME_LOCK_ATTACHED_TO_ENTITY
  API.PlayerPedId(), // Entity entity
  0.0f, // float radius
  0, // int flag
  0 // Any p3
);
All VOLUME natives

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