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 voidParameters
| Name | Type | Description |
|---|---|---|
| Player | The player to set the model for | |
| Hash | The 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
