{"hash":"0x59872EA4CBD11C56","ns":"TASK","name":"_ADD_COVER_POINT_FOR_ENTITY","slug":"_ADD_COVER_POINT_FOR_ENTITY","official":false,"named":true,"luaName":"AddCoverPointForEntity","game":"rdr3","apiset":"client","returnType":"ScrHandle","params":[{"name":"entity","type":"Entity"},{"name":"xOffset","type":"float"},{"name":"yOffset","type":"float"},{"name":"zOffset","type":"float"},{"name":"heading","type":"float"},{"name":"p5","type":"int"},{"name":"p6","type":"int"},{"name":"p7","type":"int"},{"name":"p8","type":"int"}],"summary":"Returns the entity coverpoint with offset.","descriptions":[{"source":"alloc8or","format":"text","body":"Returns the entity coverpoint with offset."}],"examples":[],"aliases":["_ADD_COVERPOINT_FOR_ENTITY"],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/TASK/_ADD_COVER_POINT_FOR_ENTITY","markdownUrl":"https://natives.borderlinerp.com/natives/TASK/_ADD_COVER_POINT_FOR_ENTITY.md","snippets":{"lua":"local retval = AddCoverPointForEntity(entity, xOffset, yOffset, zOffset, heading, p5, p6, p7, p8)","luaInvoke":"local retval = Citizen.InvokeNative(0x59872EA4CBD11C56, entity, xOffset, yOffset, zOffset, heading, p5, p6, p7, p8, Citizen.ResultAsInteger())","js":"const retval = AddCoverPointForEntity(entity, xOffset, yOffset, zOffset, heading, p5, p6, p7, p8);","jsInvoke":"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());","csharp":"int retval = Function.Call<int>((Hash)0x59872EA4CBD11C56, entity, xOffset, yOffset, zOffset, heading, p5, p6, p7, p8);","notes":["Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to 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 `InvokeNative` with the hash — it always works."]}}