{"hash":"0xE0FF064D","ns":"CFX","name":"SET_ENTITY_HEADING","slug":"SET_ENTITY_HEADING","official":true,"named":true,"luaName":"SetEntityHeading","game":"cfx","apiset":"server","returnType":"void","params":[{"name":"entity","type":"Entity","description":"The entity to set the heading for."},{"name":"heading","type":"float","description":"The heading in degrees."}],"summary":"Set the heading of an entity in degrees also known as \"Yaw\".","descriptions":[{"source":"cfx","format":"md","body":"Set the heading of an entity in degrees also known as \"Yaw\".\n\n**This is the server-side RPC native equivalent of the client native [SET_ENTITY_HEADING](?\\_0x8E2530AA8ADA980E).**"}],"examples":[],"aliases":[],"enums":[],"related":["0x972CC383"],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/SET_ENTITY_HEADING","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/SET_ENTITY_HEADING.md","snippets":{"lua":"SetEntityHeading(entity, heading)","luaInvoke":"Citizen.InvokeNative(0xe0ff064d, entity, heading)","js":"SetEntityHeading(entity, heading);","jsInvoke":"Citizen.invokeNative('0xe0ff064d', entity, heading + 0.0000001);","csharp":"Function.Call((Hash)0xe0ff064d, entity, heading);","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."]}}