Skip to Content
Paid ResourcesPetsInstallation & Usage

Installation & Usage

Installation

Add the provided items and images to ox_inventory

Add the pet shop to your ox_inventory shops

Configure your config files

Usage

To get the data of your current pet, use the following export, or the player state.

client.lua
local myPet = exports['xt-pets']:GetPet() local myPet = LocalPlayer.state.pet

Returns a table of data about the pet, or nil.

FieldDescription
idPet entity id
modelPet entity model
namePet name
waitingPet waiting state
vehicleEntity of the vehicle the pet is in, or false
seatSeat index of the pet, or false
animationPet’s current animation
foodPet’s food value
waterPet’s water value
healthPet’s health value
variationPet’s coat variation
Last updated on