RedM Natives

SET_PLAYER_MODEL

Make sure to request the model first and wait until it has loaded.

Hash0xED40380076A31506
Runtime nameSetPlayerModel
NamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x00A1CADD00108836

Signature

void SET_PLAYER_MODEL(Player player, Hash modelHash, BOOL p2);

Parameters

NameTypeDescription
playerPlayer—
modelHashHash—
p2BOOL—

Returns void

Description

Make sure to request the model first and wait until it has loaded.

Usage

Lua
SetPlayerModel(player, modelHash, p2)

-- always works, by hash
Citizen.InvokeNative(0xED40380076A31506, player, modelHash, p2)
JavaScript and C#
JavaScript
SetPlayerModel(player, modelHash, p2);

// by hash
Citizen.invokeNative('0xED40380076A31506', player, modelHash, p2);
C#
Function.Call((Hash)0xED40380076A31506, player, modelHash, p2);
  • 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`.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.