Page cover image

💻Installation

Don't know how to install the script? Don't worry, we are here to help!

1) Go to keymaster and download the package

You can find your keymaster here, you'll need to login with your Fivem account. Make sure you get the right account because when you purchase the package, it is connected to the Fivem account you logged into.

Once logged in, you can download the package! Downloading the package is as easy as just pressing one button.

2) Putting it in the server

Unzip the folder and drop it into one of your folders inside resources.

resources

[cfx-default]

[qb] -> Drop here

[standalone] -> Or here

[voice]

3) Core

By default the selected core is QBCore and qb-core. This should be fine, unless you made your server a "custom framework" lookalike you have to edit it to what it's called. For example 'POGCore' and 'pog-core'

Config.Core = {
    core = 'QBCore', --change to your core
    name = 'qb-core' --change to your core name
}

4) Menu, notify and more

Config.MenuExports = 'qb-menu'
Config.InputExports = 'qb-input'

Config.Notify = 'QBCore:Notify' --change QBCore to your core if needed
Config.CoreAddItem = 'QBCore:Server:AddItem' --change QBCore to your core if needed
Config.CoreRemoveItem = 'QBCore:Server:RemoveItem' --change QBCore to your core if needed
Config.CoreLoaded = 'QBCore:Client:OnPlayerLoaded' --change QBCore to your core if needed

5) Database

Run the petsV2.sql file in your database found in the package.

6) Items

Add the following to your items list in your core:

    ['dogfood']                         = {['name'] = 'dogfood',                           ['label'] = 'Dogfood',                   ['weight'] = 1000,         ['type'] = 'item',         ['image'] = 'dogfood.png',                 ['unique'] = false,         ['useable'] = true,      ['shouldClose'] = true,      ['combinable'] = nil,   ['description'] = 'Food for your dog'},  
    ['catfood']                         = {['name'] = 'catfood',                           ['label'] = 'Catfood',                   ['weight'] = 1000,         ['type'] = 'item',         ['image'] = 'catfood.png',                 ['unique'] = false,         ['useable'] = true,      ['shouldClose'] = true,      ['combinable'] = nil,   ['description'] = 'Food for your cat'},
    ['chickenfood']                     = {['name'] = 'chickenfood',                       ['label'] = 'Chickenfood',               ['weight'] = 1000,         ['type'] = 'item',         ['image'] = 'chickenfood.png',             ['unique'] = false,         ['useable'] = true,      ['shouldClose'] = true,      ['combinable'] = nil,   ['description'] = 'Food for your chicken'},

Also add the images to your qb-inventory > html > images, images found in images folder.

7) Interior petshop

Go to here and download the map. Drop in in your resources and don't forget to start it

8) Using discord roles for whitelist

If you wanna use discord roles for the whitelisting system you'll need to add this dependency to your server. Make sure to fill in the config.lua file.

8) Start the script

Start the script and enjoy! For configuration info go to the next page 😄

Last updated