Player
A class that extends the Ped class with additional functionality for players.
Constructor
lib.player:new(netId)
import { Player } from "@overextended/ox_lib";
new Player(netId)
- netId:
numberThe player's server id.
Returns: Player
Methods > setModel
Creates a new ped and assigns it to the player. On the client, this invalidates the entity handle (see setHandle).
entity:setModel(model)
entity.setModel(model)
- model:
string|number
<include>Ped.mdx#pedmethods</include>