Installation & Usage

Installation

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
Edit this page on GitHub

MIT 2026 © xT Development.

On this page