erratic_coke/dobby_coke
Drug script that has you fly a plane to pick up drugs. Offers a few config options to make it fit into most servers. Comes with an English and German translation. I just made changes so it works for the island and my drug system, full credit goes to erratic for his origional script!
IF YOU USE NEW MYTHIC ALERTS CHANGE THE DoHudText TO SendAlert IN
- server/dobby_coke_sv.lua
- client/dobby_coke_cl.lua
IMPORTANT: YOU WILL HAVE TO PROTECT THE SERVER SIDE CODE YOURSELF
Prerequisites:
- ESX
- A working database
- I use old mystic notify, so change the DoHudText to SendAlert in the server.lua if you want to use mythic alerts!
Optional resources:
Install these like you would normally and set this in the config
Config.useMythic = true
Config.progBar = true
_[Island used in screenshots] (The Cayo Perico Island Available for FiveM)
How to install:
- Download the resource from GitHub
1.1 Download updated version here: dobby_coke_run_cayo_perico.rar (1.1 MB) - Unzip it
- Put it in your resource folder
- Add āstart dobby_coke_run_cayo_pericoā to your server.cfg
- Run coke.sql
- Done
Config options:
- Config.Locale - English or German. More translations might follow
- Config.useMythic - Use mythic or not
- Config.progBar - Use Progress Bar or not
- Config.useCD - Use a global cooldown or not
- Config.cdTime - Time in ms you want the cooldown to be
- Config.price - Price you pay for starting a run
- Config.randBrick - Amount of coke you get from breaking bricks
- Config.takeBrick - Amount of bricks it takes when processing
How to add more languages:
- Open the locales folder
- Create a new file in the locales folder and name it āyourlanguageā.lua
- Translate the locales from English/German to your preferred language
- Add āyourlanguageā.lua to the client_scripts and server_scripts in the fxmanifest.lua
- Done
Your fxmanifest should look like this:
client_scripts {
'@es_extended/locale.lua',
'locales/de.lua',
'locales/en.lua',
'locales/yourlanguage.lua',
'config.lua',
'client/dobby_coke_cl.lua'
}
server_scripts {
'@es_extended/locale.lua',
'locales/de.lua',
'locales/en.lua',
'locales/yourlanguage.lua',
'config.lua',
'server/dobby_coke_sv.lua'
}