RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. SET_PLAYER_MODEL

SET_PLAYER_MODEL

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. As per usual, make sure to request the model first and wait until it has loaded. **This is the server-side RPC native equivalent of the client native [SET_PLAYER_MODEL](?\_0x00A1CADD00108836).**

CFX

Signature

lua
SetPlayerModel(PlayerId(), GetHashKey("..."))
-- returns void

Parameters

NameTypeDescription
PlayerThe player to set the model for
HashThe model to use

Usage

lua
SetPlayerModel(PlayerId(), GetHashKey("..."))

Generated from the native name, hash, and parameter list. Add a real example.

Details

Hash
API set
Source
cfx

Source: cfx

On this page

  • Signature
  • Parameters
  • Usage
  • Details