_ADD_COVER_POINT_FOR_ENTITY
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
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 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | xOffset | float |
| 3 | yOffset | float |
| 4 | zOffset | float |
| 5 | heading | float |
| 6 | p5 | int |
| 7 | p6 | int |
| 8 | p7 | int |
| 9 | p8 | int |
Facts
| 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.
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)// 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)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
);Related TASK natives
- _ADD_COVER_BLOCKING_VOLUME
- ADD_COVER_POINT
- TASK_SEEK_COVER_TO_COVER_POINT
- _GET_SCENARIO_POINT_ENTITY
- _RESET_SCENARIO_FOR_ENTITY
- _TASK_POINT_AT_ENTITY
- ADD_COVER_BLOCKING_AREA
- CREATE_SCENARIO_POINT_HASH_ATTACHED_TO_ENTITY
- DOES_SCRIPTED_COVER_POINT_EXIST_AT_COORDS
- GET_PROP_FOR_SCENARIO_POINT
- GET_SCRIPTED_COVER_POINT_COORDS
- REMOVE_COVER_POINT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.