The Lab
PLAYER native

SET_PLAYER_MODEL

returns void3 paramsbuild 1207

Changes the model of player to modelHash.

Load the model with REQUEST_MODEL first and release it with SET_MODEL_AS_NO_LONGER_NEEDED afterwards.

Signature

C
void SET_PLAYER_MODEL(Player player, Hash modelHash, BOOL p2); // 0xED40380076A31506 b1207

Parameters

#NameType
1playerPlayer
2modelHashHash
3p2BOOL

Facts

Facts about SET_PLAYER_MODEL
Name
SET_PLAYER_MODEL
Hash
0xED40380076A31506
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0xED40380076A31506, -- SET_PLAYER_MODEL
  PlayerId(), -- Player player
  GetHashKey("a_c_horse_arabian_white"), -- Hash modelHash
  false -- BOOL p2
)
JavaScript
Citizen.invokeNative("0xED40380076A31506", // SET_PLAYER_MODEL
  PlayerId(), // Player player
  GetHashKey("a_c_horse_arabian_white"), // Hash modelHash
  false // BOOL p2
);
C#
Function.Call((Hash)0xED40380076A31506, // SET_PLAYER_MODEL
  API.PlayerId(), // Player player
  (uint)API.GetHashKey("a_c_horse_arabian_white"), // Hash modelHash
  false // BOOL p2
);
All PLAYER natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.