{"hash":"0xA345EFE","ns":"CFX","name":"SET_ENTITY_ROTATION","slug":"SET_ENTITY_ROTATION","official":true,"named":true,"luaName":"SetEntityRotation","game":"cfx","apiset":"server","returnType":"void","params":[{"name":"entity","type":"Entity","description":"The entity to rotate."},{"name":"pitch","type":"float","description":"The pitch (X-axis) rotation in degrees."},{"name":"roll","type":"float","description":"The roll (Y-axis) rotation in degrees."},{"name":"yaw","type":"float","description":"The yaw (Z-axis) rotation in degrees."},{"name":"rotationOrder","type":"int","description":"Specifies the order in which yaw, pitch, and roll are applied, see [`GET_ENTITY_ROTATION`](#\\_0xAFBD61CC738D9EB9) for the available rotation orders."},{"name":"bDeadCheck","type":"BOOL","description":"Usually set to `true`. Determines whether to check if the entity is dead before applying the rotation."}],"summary":"Sets the rotation of a specified entity in the game world.","descriptions":[{"source":"cfx","format":"md","body":"Sets the rotation of a specified entity in the game world.\n\n```\nNativeDB Introduced: v323\n```\n\n**This is the server-side RPC native equivalent of the client native [SET_ENTITY_ROTATION](?\\_0x8524A8B0171D5E07).**"}],"examples":[],"aliases":[],"enums":[],"related":["0x8FF45B04"],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/SET_ENTITY_ROTATION","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/SET_ENTITY_ROTATION.md","snippets":{"lua":"SetEntityRotation(entity, pitch, roll, yaw, rotationOrder, bDeadCheck)","luaInvoke":"Citizen.InvokeNative(0xa345efe, entity, pitch, roll, yaw, rotationOrder, bDeadCheck)","js":"SetEntityRotation(entity, pitch, roll, yaw, rotationOrder, bDeadCheck);","jsInvoke":"Citizen.invokeNative('0xa345efe', entity, pitch + 0.0000001, roll + 0.0000001, yaw + 0.0000001, rotationOrder, bDeadCheck);","csharp":"Function.Call((Hash)0xa345efe, entity, pitch, roll, yaw, rotationOrder, bDeadCheck);","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."]}}