From the reference libraryFiveM

Ped

ox/ox_lib/Ped.mdx

Ped

A class for ped entities implementing a custom statebag interface and common entity operations.

Constructor

lib.ped:new(handle)
import { Ped } from "@overextended/ox_lib";

new Ped(handle)

Returns: Ped

Methods > getArmour

Gets the entity's current armour.

entity:getArmour()
entity.getArmour()

Returns: number

Methods > setArmour

Sets the entity's armour.

entity:setArmour(amount)
entity.setArmour(amount)
  • amount: number

<include>GameEntity.mdx</include> </section>

Back to documentation