RedM Natives

_CREATE_VOLUME_LOCK_ATTACHED_TO_ENTITY

Hash0xF383E96C4904DF0C
Runtime nameCreateVolumeLockAttachedToEntity
NamespaceVOLUME
SideClient
NameCommunity guess
Docs
Since build1207

Signature

Volume _CREATE_VOLUME_LOCK_ATTACHED_TO_ENTITY(Entity entity, float radius, int flag, Any p3);

Parameters

NameTypeDescription
entityEntity—
radiusfloat—
flagint—
p3Any—

Returns Volume

Description

Params: p3 is always 0

Usage

Lua
local retval = CreateVolumeLockAttachedToEntity(entity, radius, flag, p3)

-- always works, by hash
local retval = Citizen.InvokeNative(0xF383E96C4904DF0C, entity, radius, flag, p3, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = CreateVolumeLockAttachedToEntity(entity, radius, flag, p3);

// by hash
const retval = Citizen.invokeNative('0xF383E96C4904DF0C', entity, radius + 0.0000001, flag, p3, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xF383E96C4904DF0C, entity, radius, flag, p3);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.