IS_ENTITY_IN_VOLUME
Returns true if the entity is inside the given volume.
Signature
BOOL IS_ENTITY_IN_VOLUME(Entity entity, ScrHandle volume, BOOL p2, int p3); // 0x5A5526BC09C06623 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | volume | ScrHandle |
| 3 | p2 | BOOL |
| 4 | p3 | int |
Facts
| Name | IS_ENTITY_IN_VOLUME |
|---|---|
| Hash | 0x5A5526BC09C06623 |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x5A5526BC09C06623, -- IS_ENTITY_IN_VOLUME
PlayerPedId(), -- Entity entity
0, -- ScrHandle volume
false, -- BOOL p2
0 -- int p3
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x5A5526BC09C06623", // IS_ENTITY_IN_VOLUME
PlayerPedId(), // Entity entity
0, // ScrHandle volume
false, // BOOL p2
0, // int p3
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x5A5526BC09C06623, // IS_ENTITY_IN_VOLUME
API.PlayerPedId(), // Entity entity
0, // ScrHandle volume
false, // BOOL p2
0 // int p3
);Related ENTITY natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.