FAQ
Can I open the menu with something other than the chat command?
Yes! You can utilize the following client event to open the menu however you wish (ex: radialmenu, use item, etc): "wp-animals:client:openMenu"
How can I edit the script to use an item for the cost instead of using money?
This can easily be done with some modifications to the PayForItemAndReturnStatus
function (located in the framework.lua file). This is useful if you want to use items such as "paid for" coupons to exchange for pets.
Here are the high level changes you can make:
Update the
price
fields in Config.Animals, changing it to the name of the item that you want to use. Example: price = "petcoupon"Update PayForItemAndReturnStatus function
First check if the player has the item in their inventory
If they do have the item, remove it from their inventory and return true
If they do not have the item, notify them that it requires this specific item and return false
Here is an example of what this could look like:
How do I update the Animal shop location?
Update the coords on Config.AnimalStore
in the Config.
Last updated