From the reference libraryFiveM

Player

ox/ox_lib/Player.mdx

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)

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>

Back to documentation