_ADD_COVER_POINT_FOR_ENTITY
Returns the entity coverpoint with offset.
Hash
0x59872EA4CBD11C56Runtime name
AddCoverPointForEntityNamespaceTASK
SideClient
NameCommunity guess
Docs
Since build1207
Also known as
_ADD_COVERPOINT_FOR_ENTITYSignature
ScrHandle _ADD_COVER_POINT_FOR_ENTITY(Entity entity, float xOffset, float yOffset, float zOffset, float heading, int p5, int p6, int p7, int p8);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
xOffset | float | — |
yOffset | float | — |
zOffset | float | — |
heading | float | — |
p5 | int | — |
p6 | int | — |
p7 | int | — |
p8 | int | — |
Returns ScrHandle
Description
Returns the entity coverpoint with offset.
Usage
local retval = AddCoverPointForEntity(entity, xOffset, yOffset, zOffset, heading, p5, p6, p7, p8)
-- always works, by hash
local retval = Citizen.InvokeNative(0x59872EA4CBD11C56, entity, xOffset, yOffset, zOffset, heading, p5, p6, p7, p8, Citizen.ResultAsInteger())JavaScript and C#
const retval = AddCoverPointForEntity(entity, xOffset, yOffset, zOffset, heading, p5, p6, p7, p8);
// by hash
const retval = Citizen.invokeNative('0x59872EA4CBD11C56', entity, xOffset + 0.0000001, yOffset + 0.0000001, zOffset + 0.0000001, heading + 0.0000001, p5, p6, p7, p8, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x59872EA4CBD11C56, entity, xOffset, yOffset, zOffset, heading, p5, p6, p7, p8);- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason. - The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.