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
Client
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.petReturns a table of data about the pet, or nil.
| Field | Description |
|---|---|
id | Pet entity id |
model | Pet entity model |
name | Pet name |
waiting | Pet waiting state |
vehicle | Entity of the vehicle the pet is in, or false |
seat | Seat index of the pet, or false |
animation | Pet’s current animation |
food | Pet’s food value |
water | Pet’s water value |
health | Pet’s health value |
variation | Pet’s coat variation |
Last updated on