The Lab
ENTITY native

WOULD_ENTITY_BE_OCCLUDED

returns BOOL5 paramsbuild 1207

Returns true if an entity of the given model would be occluded at the given position.

Signature

C
BOOL WOULD_ENTITY_BE_OCCLUDED(Hash entityModelHash, float x, float y, float z, BOOL p4); // 0x3546FAB293FF2981 b1207

Parameters

#NameType
1entityModelHashHash
2xfloat
3yfloat
4zfloat
5p4BOOL

Facts

Facts about WOULD_ENTITY_BE_OCCLUDED
Name
WOULD_ENTITY_BE_OCCLUDED
Hash
0x3546FAB293FF2981
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(0x3546FAB293FF2981, -- WOULD_ENTITY_BE_OCCLUDED
  GetHashKey("a_c_horse_arabian_white"), -- Hash entityModelHash
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  false -- BOOL p4
)
if result then
  -- ...
end
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0x3546FAB293FF2981", // WOULD_ENTITY_BE_OCCLUDED
  GetHashKey("a_c_horse_arabian_white"), // Hash entityModelHash
  0.0, // float x
  0.0, // float y
  0.0, // float z
  false, // BOOL p4
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x3546FAB293FF2981, // WOULD_ENTITY_BE_OCCLUDED
  (uint)API.GetHashKey("a_c_horse_arabian_white"), // Hash entityModelHash
  0.0f, // float x
  0.0f, // float y
  0.0f, // float z
  false // BOOL p4
);
All ENTITY natives

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