The Lab
TASK native

_ADD_COVER_POINT_FOR_ENTITY

returns ScrHandle9 paramsbuild 1207

Adds a cover point attached to entity at the given offset and heading, returning its handle.

Remove it with REMOVE_COVER_POINT when no longer needed.

Signature

C
ScrHandle _ADD_COVER_POINT_FOR_ENTITY(Entity entity, float xOffset, float yOffset, float zOffset, float heading, int p5, int p6, int p7, int p8); // 0x59872EA4CBD11C56 b1207

Parameters

#NameType
1entityEntity
2xOffsetfloat
3yOffsetfloat
4zOffsetfloat
5headingfloat
6p5int
7p6int
8p7int
9p8int

Facts

Facts about _ADD_COVER_POINT_FOR_ENTITY
Name
_ADD_COVER_POINT_FOR_ENTITY
Hash
0x59872EA4CBD11C56
Namespace
Returns
ScrHandle
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local scrHandle = Citizen.InvokeNative(0x59872EA4CBD11C56, -- _ADD_COVER_POINT_FOR_ENTITY
  PlayerPedId(), -- Entity entity
  0.0, -- float xOffset
  0.0, -- float yOffset
  0.0, -- float zOffset
  0.0, -- float heading
  0, -- int p5
  0, -- int p6
  0, -- int p7
  0, -- int p8
  Citizen.ResultAsInteger()
)
print(scrHandle)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const scrHandle = Citizen.invokeNative("0x59872EA4CBD11C56", // _ADD_COVER_POINT_FOR_ENTITY
  PlayerPedId(), // Entity entity
  0.0, // float xOffset
  0.0, // float yOffset
  0.0, // float zOffset
  0.0, // float heading
  0, // int p5
  0, // int p6
  0, // int p7
  0, // int p8
  Citizen.resultAsInteger()
);
console.log(scrHandle)
C#
int scrHandle = Function.Call<int>((Hash)0x59872EA4CBD11C56, // _ADD_COVER_POINT_FOR_ENTITY
  API.PlayerPedId(), // Entity entity
  0.0f, // float xOffset
  0.0f, // float yOffset
  0.0f, // float zOffset
  0.0f, // float heading
  0, // int p5
  0, // int p6
  0, // int p7
  0 // int p8
);
All TASK natives

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