{"hash":"0x774A4C54","ns":"CFX","name":"SET_PLAYER_MODEL","slug":"SET_PLAYER_MODEL","official":true,"named":true,"luaName":"SetPlayerModel","game":"cfx","apiset":"server","returnType":"void","params":[{"name":"player","type":"Player","description":"The player to set the model for"},{"name":"model","type":"Hash","description":"The model to use"}],"summary":"Set the model for a specific Player.","descriptions":[{"source":"cfx","format":"md","body":"Set the model for a specific Player. Note that this will destroy the current Ped for the Player and create a new one, any reference to the old ped will be invalid after calling this.\nAs per usual, make sure to request the model first and wait until it has loaded.\n\n**This is the server-side RPC native equivalent of the client native [SET_PLAYER_MODEL](?\\_0x00A1CADD00108836).**"}],"examples":[],"aliases":[],"enums":[],"related":[],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/SET_PLAYER_MODEL","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/SET_PLAYER_MODEL.md","snippets":{"lua":"SetPlayerModel(player, model)","luaInvoke":"Citizen.InvokeNative(0x774a4c54, player, model)","js":"SetPlayerModel(player, model);","jsInvoke":"Citizen.invokeNative('0x774a4c54', player, model);","csharp":"Function.Call((Hash)0x774a4c54, player, model);","notes":["Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat(\"name\")` or a backtick literal like `` `name` ``."]}}