βοΈConfiguration
In config.lua you have everything you need to change to make the script to your liking
Language and Locales
If you have translated it into any other language not available by us, feel free to share it on our discord
To change the language simply change the config.lua from en to the language you want. All translations are available in the locales folder.
Config.Locale = 'en'
Systems and Frameworks
To change the framework or system just change it with the options given
Config.Framework = 'QB' -- ESX OR QB
Config.Inventory = 'OX' -- OX OR QB
Config.Notify = 'QB' -- OX OR QB
Config.Target = 'QB'-- OX OR QB
Values
In our script we give you the oportunity to set the script for your liking, so we implemented values that you can change to personalizate your script
Config.Camp = 70 -- Percentage to have a body on the camp
Config.Values = 70 -- Percentage for body values
Config.PoliceNotify = 60 -- Percentage to notify the police
Camp -> Percentage to have a body on the tomb
Values -> Percentage for body to have values with him
PoliceNotify -> Percentage for probability to notify the police
Type of robbery and Police configuration
In our script, you have the flexibility to choose between using an item or a target to rob a tomb. Additionally, you can configure the required number of police officers needed for the heist. To do this, simply adjust the settings in the configuration file as demonstrated below:
Config.typeOfRobbery = 'target'-- target or item
Config.PoliceJob = 'police' -- Police Job
Config.minPolice = 4 -- Min police to rob a tomb
QB-INVENTORY INSTALLATION
Add the items to your inventory by modifying
qb-core/shared/items.lua
. (The required items are listed in the README file.)Open
qb-smallresources/server/consumables.lua
and insert the following code at the beginning.
local QBCore = exports['qb-core']:GetCoreObject()
-------- Yoda Cemetery Robbery
QBCore.Functions.CreateUseableItem("shovel", function(source)
local Player = QBCore.Functions.GetPlayer(source)
if Player then
TriggerClientEvent('yoda-cemeteryrob:checkPolice', source)
end
end)
Add More Coords
To add more tombs to steal, follow these steps:
Create a file named config2.lua in the yoda-cemetery-robbery folde.
Open the existing config.lua and locate the section that containes Config.robloc = {...}. Copy all the code within this section.
Paste the copied code into config2.lua
Navigate to the tomb's you want to add in the game, and use the /addcoord command at each location. This will add the coordinates for the new tombs.
Once you've added all the desired tombs, use /closecoord command to finalize the process.
Copy the updated code from config2.lua and replace the corresponding section in config.lua with this new code.
Last updated
Was this helpful?