πΆ Pet Module
Main Module for the pets.
GetPetsβ
Returns all the pets in the players inventory
local Framework = require(path.to.framework).GetServer()
local PetModule = Framework.PetModule
PetModule.GetPets(player)
GetInventoryCapacityβ
Returns the max capacity
print(PetModule.GetInventoryCapacity(player))
HasSpaceForβ
Returns a boolean if the player has space for another pet
local hasSpace = PetModule.HasSpaceFor(player)
GetMultiplierβ
Gets the players multiplier for all the pets combined.
local multi = PetModule.GetMultiplier(player)
GetEquippedβ
Returns all the pets the player has equipped in a table
print(PetModule.GetEquipped(player))
GetEquippedPetsβ
Returns the number of pets equipped
print(PetModule.GetEquippedPets(player))
GetMaxEquippedβ
Returns the maximum pet slots a player has
return PetModule.GetMaxEquipped(player)
EquipBestβ
Equips the best pets the player has
PetModule.EquipBest(player)
Equipβ
Equips a pet using the index.
PetModule.Equip(player, 10) -- index of the pet they want to equip.
Unequipβ
Opposite of Equip.
PetModule.Unequip(player, 10)
GivePetβ
Gives the player a pet
The pet must be valid, otherwise you cause data issues.
PetModule.GivePet(player, "Cat")
DeletePetsβ
Deletes a ton of pets from a table
The value taken in is NOT the pets name, but the index.
PetModule.DeletePets(player, { 1, 5, 10, 4, 9 })