The Lab
GRAPHICS native

_GET_ENTITY_MASK_LAYERS

returns BOOL5 paramsbuild 1207

Reads the four mask layer values of entity into the output pointers, returning true on success.

Signature

C
BOOL _GET_ENTITY_MASK_LAYERS(Entity entity, float* layer0, float* layer1, float* layer2, float* layer3); // 0xE8A8378BF651079C b1207

Parameters

#NameType
1entityEntity
2layer0float* (out pointer)
3layer1float* (out pointer)
4layer2float* (out pointer)
5layer3float* (out pointer)

Facts

Facts about _GET_ENTITY_MASK_LAYERS
Name
_GET_ENTITY_MASK_LAYERS
Hash
0xE8A8378BF651079C
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, layer0, layer1, layer2, layer3 = Citizen.InvokeNative(0xE8A8378BF651079C, -- _GET_ENTITY_MASK_LAYERS
  PlayerPedId(), -- Entity entity
  Citizen.PointerValueFloat(), -- float* layer0
  Citizen.PointerValueFloat(), -- float* layer1
  Citizen.PointerValueFloat(), -- float* layer2
  Citizen.PointerValueFloat(), -- float* layer3
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, layer0, layer1, layer2, layer3] = Citizen.invokeNative("0xE8A8378BF651079C", // _GET_ENTITY_MASK_LAYERS
  PlayerPedId(), // Entity entity
  Citizen.pointerValueFloat(), // float* layer0
  Citizen.pointerValueFloat(), // float* layer1
  Citizen.pointerValueFloat(), // float* layer2
  Citizen.pointerValueFloat(), // float* layer3
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var layer0Arg = new OutputArgument();
var layer1Arg = new OutputArgument();
var layer2Arg = new OutputArgument();
var layer3Arg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0xE8A8378BF651079C, // _GET_ENTITY_MASK_LAYERS
  API.PlayerPedId(), // Entity entity
  layer0Arg, // float* layer0
  layer1Arg, // float* layer1
  layer2Arg, // float* layer2
  layer3Arg // float* layer3
);
float layer0 = layer0Arg.GetResult<float>();
float layer1 = layer1Arg.GetResult<float>();
float layer2 = layer2Arg.GetResult<float>();
float layer3 = layer3Arg.GetResult<float>();
All GRAPHICS natives

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