{"hash":"0x0D4B77E862475ED3","ns":"LAW","name":"_CREATE_GUARD_ZONE_FOR_ENTITY","slug":"_CREATE_GUARD_ZONE_FOR_ENTITY","official":false,"named":true,"luaName":"CreateGuardZoneForEntity","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"guardZoneName","type":"const char*"},{"name":"entity","type":"Entity"},{"name":"x","type":"float"},{"name":"y","type":"float"},{"name":"z","type":"float"}],"summary":"Returns true when investigation creation was successful","descriptions":[{"source":"alloc8or","format":"text","body":"Returns true when investigation creation was successful"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1311","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/LAW/_CREATE_GUARD_ZONE_FOR_ENTITY","markdownUrl":"https://natives.borderlinerp.com/natives/LAW/_CREATE_GUARD_ZONE_FOR_ENTITY.md","snippets":{"lua":"local retval = CreateGuardZoneForEntity(guardZoneName, entity, x, y, z)","luaInvoke":"local retval = Citizen.InvokeNative(0x0D4B77E862475ED3, guardZoneName, entity, x, y, z, Citizen.ReturnResultAnyway())","js":"const retval = CreateGuardZoneForEntity(guardZoneName, entity, x, y, z);","jsInvoke":"const retval = Citizen.invokeNative('0x0D4B77E862475ED3', guardZoneName, entity, x + 0.0000001, y + 0.0000001, z + 0.0000001, Citizen.returnResultAnyway());","csharp":"bool retval = Function.Call<bool>((Hash)0x0D4B77E862475ED3, guardZoneName, entity, x, y, z);","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."]}}