🛠️Configuration
Let's configure your new script to your liking!
Language
There are a few default languages that come with the script. You can easily add your own language or just translate one of the default ones. Let me show you how to choose your language.
1) Go to the fxmanifest.lua
and look for shared_scripts
.
2) You will find this on that spot:
shared_scripts {
'locales/en.lua', --Choose a language, you can add some yourself if you want
'config.lua'
}
3) On the 2nd line you see locales/en.lua
this stands for English. So if you want Dutch for example you choose nl.lua
instead of en.lua
. This is possible because nl.lua
is already present in the locales folder
.
Blip and location
The storeLocation
is only if you don't use target, just leave it as it is if you have target. Blip icons and colours are found here.
Config.Store = {
storelocation = vector3(562.27, 2751.56, 42.88), --Location where you can buy pets
blipcoords = vector3(562.37, 2751.36, 42.88), -- Location on the map for the blip
blipsprite = 273, --Blip icon
blipcolor = 24,
blipscale = 0.6,
bliplabel = "Pet store",
blipshortrange = true, --If false then it will be visible on minimap when not near it (should stay on true)
}
Whitelisting
Config.UseIds = false --true to use id's, false to disable
Config.UseRoles = false --true to use roles, false to disable
Config.UseIds = true --true to use id's, false to disable
Config.UseRoles = false --true to use roles, false to disable
And put the players id's in the correct place:
Config.WhitelistedIds = {
discord = {
--"discord:000000000000000000",
--"discord:000000000000000000",
},
citizenid = {
--"ABC123",
--"ABC123",
},
fivem = {
--"license:0000000000000000000000000000000000000000",
--"license:0000000000000000000000000000000000000000",
},
}
Config.UseIds = false --true to use id's, false to disable
Config.UseRoles = true --true to use roles, false to disable
And put the roles in the correct place:
Config.WhitelistedRoles = { --paste your discord id's here
-- "001894851541518484",
-- "441874784078487484",
}
Other configurations
In the config we can adjust how the pet behaves.
Changing seller and vet
All Fivem peds are found here. Do not change the spawned
and event
!
Config.Peds = {
[1] = {
pos = vector4(559.86, 2747.25, 41.88, 280.29),
name = 's_m_m_doctor_01',
spawned = false,
targetLabel = 'Bring pet to vet',
targetIcon = 'fas fa-stethoscope',
event = 'lumio-pets:client:vetmenu',
},
[2] = {
pos = vector4(561.52, 2752.86, 41.88, 190.26),
name = 'a_f_y_eastsa_03',
spawned = false,
targetLabel = 'Pet store',
targetIcon = 'fas fa-cat',
event = 'lumio-pets:client:shopmenu',
},
}
Last updated