{"hash":"0xD17AFCD8","ns":"CFX","name":"SET_PLAYER_CONTROL","slug":"SET_PLAYER_CONTROL","official":true,"named":true,"luaName":"SetPlayerControl","game":"cfx","apiset":"server","returnType":"void","params":[{"name":"player","type":"Player"},{"name":"bHasControl","type":"BOOL"},{"name":"flags","type":"int"}],"summary":"This is the server-side RPC native equivalent of the client native SET_PLAYER_CONTROL.","descriptions":[{"source":"cfx","format":"md","body":"```\nFlags:\nSPC_AMBIENT_SCRIPT = (1 << 1),\nSPC_CLEAR_TASKS = (1 << 2),\nSPC_REMOVE_FIRES = (1 << 3),\nSPC_REMOVE_EXPLOSIONS = (1 << 4),\nSPC_REMOVE_PROJECTILES = (1 << 5),\nSPC_DEACTIVATE_GADGETS = (1 << 6),\nSPC_REENABLE_CONTROL_ON_DEATH = (1 << 7),\nSPC_LEAVE_CAMERA_CONTROL_ON = (1 << 8),\nSPC_ALLOW_PLAYER_DAMAGE = (1 << 9),\nSPC_DONT_STOP_OTHER_CARS_AROUND_PLAYER = (1 << 10),\nSPC_PREVENT_EVERYBODY_BACKOFF = (1 << 11),\nSPC_ALLOW_PAD_SHAKE = (1 << 12)\nSee: https://alloc8or.re/gta5/doc/enums/eSetPlayerControlFlag.txt\n```\n\n**This is the server-side RPC native equivalent of the client native [SET_PLAYER_CONTROL](?\\_0x8D32347D6D4C40A2).**"}],"examples":[],"aliases":[],"enums":[],"related":[],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/SET_PLAYER_CONTROL","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/SET_PLAYER_CONTROL.md","snippets":{"lua":"SetPlayerControl(player, bHasControl, flags)","luaInvoke":"Citizen.InvokeNative(0xd17afcd8, player, bHasControl, flags)","js":"SetPlayerControl(player, bHasControl, flags);","jsInvoke":"Citizen.invokeNative('0xd17afcd8', player, bHasControl, flags);","csharp":"Function.Call((Hash)0xd17afcd8, player, bHasControl, flags);","notes":[]}}