SET_PLAYER_MODEL
Make sure to request the model first and wait until it has loaded.
Hash
0xED40380076A31506Runtime name
SetPlayerModelNamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x00A1CADD00108836Signature
void SET_PLAYER_MODEL(Player player, Hash modelHash, BOOL p2);Parameters
| Name | Type | Description |
|---|---|---|
player | Player | — |
modelHash | Hash | — |
p2 | BOOL | — |
Returns void
Description
Make sure to request the model first and wait until it has loaded.
Usage
SetPlayerModel(player, modelHash, p2)
-- always works, by hash
Citizen.InvokeNative(0xED40380076A31506, player, modelHash, p2)JavaScript and C#
SetPlayerModel(player, modelHash, p2);
// by hash
Citizen.invokeNative('0xED40380076A31506', player, modelHash, p2);Function.Call((Hash)0xED40380076A31506, player, modelHash, p2);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.