_CREATE_VOLUME_LOCK_ATTACHED_TO_ENTITY
Hash
0xF383E96C4904DF0CRuntime name
CreateVolumeLockAttachedToEntityNamespaceVOLUME
SideClient
NameCommunity guess
Docs
Since build1207
Signature
Volume _CREATE_VOLUME_LOCK_ATTACHED_TO_ENTITY(Entity entity, float radius, int flag, Any p3);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
radius | float | — |
flag | int | — |
p3 | Any | — |
Returns Volume
Description
Params: p3 is always 0
Usage
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#
const retval = CreateVolumeLockAttachedToEntity(entity, radius, flag, p3);
// by hash
const retval = Citizen.invokeNative('0xF383E96C4904DF0C', entity, radius + 0.0000001, flag, p3, Citizen.returnResultAnyway(), Citizen.resultAsInteger());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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to 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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.