All scripts are configured through a single config file and this file is 0r-casinobase/shared/config.lua
Change Language#
If you change this setting, all scripts will follow the same process and all will be set in the language of your choice. Only 2 languages available to choose from en (English), tr (Turkish) .
If you want to add your own language, you can add it by creating a support request with the locales file you have prepared.
Config.Locale = 'en' -- en, tr
Interaction#
The script only works with the target system, so you cannot use DrawText or DrawText3D. Supported target systems are qb-target and ox_target .
Config.Interaction = 'ox_target' -- 'qb-target' or 'ox_target'
Inventory#
The script only supports certain inventories and versions qb-inventory, ps-inventory and lj-inventory must be new versions.
If your inventory script is not supported in the script, you can make adjustments by finding the necessary functions from 0r-casinobase/server/core.lua.
Inventories currently supported; qb-inventory, lj-inventory, ps-inventory, qs-inventory, tgiann-inventory, ox_inventory, codem-inventory
Config.Inventory = 'ox_inventory' -- 'qb-inventory', 'lj-inventory', 'ps-inventory', 'qs-inventory', 'tgiann-inventory', 'ox_inventory', 'codem-inventory'
Casino Chip Settings#
Config.CasinoChip = 'casinochips'
This setting determines the value of 1 casino chip, by default 1 chip costs 100 dollars, so for example you need 100.000$ dollars to buy 1000 chips
Config.CasinoChipPrice = 100
Premium Membership#
You set the price that players will pay to buy a premium membership, which is set at $1000 as standard.
If the price is changed from the boss menu, that price will automatically apply and the price set from here will be overridden
Config.PremiumMembershipFee = 1000
With this setting you can set the expiration time of the premium subscription, it is set to 7 days by default and can only be set daily
Config.PremiumMembershipExpireDay = 7
Teleport#
Since the script works with the bob74_ipl script as standard and uses its diamond casino map, there is a teleport system, if you don't need a teleport system, you can make status = false
Config.Teleport = {
status = true,
enter = {
coords = vector3(1089.6055, 205.9249, -48.9998),
heading = 89.82,
},
exit = {
coords = vector3(924.6814, 46.3019, 81.1063),
heading = 1.0073,
},
}
Blips#
If you use the profession system and the blip settings are changed through the patron menu, the settings set through the patron menu, such as the premium membership price, will be valid and the blip setting set through configuration will be invalid
Config.Blips = {
coords = vector3(930.61, 43.0, 81.1),
name = 'Casino',
sprite = 617,
color = 1,
scale = 0.8,
}
Job Settings#
If enable = false, the boss menu will automatically close and the money for chips purchased from the cashier will not be transferred to the boss menu.
grade = 0 is the profession and profession rank that will be automatically given to a player when they are recruited through the boss menu.
Config.JobSettings = {
enable = true,
unemployed = {
job = 'unemployed',
grade = 0
},
casino = {
job = 'casino',
grade = 0
}
}