SET_PLAYER_MODEL
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
void SET_PLAYER_MODEL(Player player, Hash modelHash, BOOL p2); // 0xED40380076A31506 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | player | Player |
| 2 | modelHash | Hash |
| 3 | p2 | BOOL |
Facts
| 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.
Citizen.InvokeNative(0xED40380076A31506, -- SET_PLAYER_MODEL
PlayerId(), -- Player player
GetHashKey("a_c_horse_arabian_white"), -- Hash modelHash
false -- BOOL p2
)Citizen.invokeNative("0xED40380076A31506", // SET_PLAYER_MODEL
PlayerId(), // Player player
GetHashKey("a_c_horse_arabian_white"), // Hash modelHash
false // BOOL p2
);Function.Call((Hash)0xED40380076A31506, // SET_PLAYER_MODEL
API.PlayerId(), // Player player
(uint)API.GetHashKey("a_c_horse_arabian_white"), // Hash modelHash
false // BOOL p2
);Related PLAYER natives
- SET_PLAYER_MAY_NOT_ENTER_ANY_VEHICLE
- SET_PLAYER_MAY_ONLY_ENTER_THIS_VEHICLE
- SET_PLAYER_MELEE_WEAPON_DAMAGE_MODIFIER
- SET_PLAYER_CAN_BE_HASSLED_BY_GANGS
- SET_PLAYER_CAN_USE_COVER
- SET_PLAYER_CLOTH_PIN_FRAMES
- SET_PLAYER_CONTROL
- SET_PLAYER_FORCED_AIM
- SET_PLAYER_HEALTH_RECHARGE_MULTIPLIER
- SET_PLAYER_INVINCIBLE
- SET_PLAYER_LOCKON
- SET_PLAYER_LOCKON_RANGE_OVERRIDE
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.