[Release] [ESX] Cayo Perico Drug Runs

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

Mythic_notify

Progress Bars 1.0

_[Island used in screenshots] (The Cayo Perico Island Available for FiveM)


How to install:

  1. Download the resource from GitHub
    1.1 Download updated version here: dobby_coke_run_cayo_perico.rar (1.1 MB)
  2. Unzip it
  3. Put it in your resource folder
  4. Add ā€œstart dobby_coke_run_cayo_pericoā€ to your server.cfg
  5. Run coke.sql
  6. 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:

  1. Open the locales folder
  2. Create a new file in the locales folder and name it ā€œyourlanguageā€.lua
  3. Translate the locales from English/German to your preferred language
  4. Add ā€œyourlanguageā€.lua to the client_scripts and server_scripts in the fxmanifest.lua
  5. 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'
}
8 Likes

nice release

2 Likes

Wait, I thought changing XYZ was easy job.

1 Like

It is, made some other changes aswell, but this one isnt randomized, the other one is. This one always brings you to the island, which is why I made it. Like I said it simple, but hopefully people who dont know how to change those things have some fun with it.

1 Like

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'limit, rare, can_remove) VALUES

When adding Coke SQL to server?

2 Likes

How to start Drug runs when in game?

Nice releases

2 Likes

Change limit to weight, I think you use new esx base!

The location is:

Then stand in front of the door:

1 Like

where do i process the coke?

1 Like

I am fixing it atm I hope to release that tomorrow.

i have another question, when i turn the option ā€œConfig.landPlane=trueā€, i go to location where the plane should be landing and nothing happens, it just doesnā€™t appear to me and i get stuck.

1 Like

I am getting this. Script Error: @dobby_coke_run_cayo_perico/server/dobby_coke_sv.lua:55: attempt to index a nil value(edited)
[12:03 PM]
TriggerServerCallback (@es_extended/server/functions.lua:33
[12:03 PM]
handler (@es_extended/server/common.lua:88

1 Like

Yeah I am fixing that rn, I will push out an update tonight! Thats the converting one.

1 Like

Hmm interesting, I will have a look if it happens for me to!

Download for updated version is now up!

  • Added BR language thanks to vWernay

  • Fixed processing errors.

Is there a sell point?

I press e to start the mission and the door tell me ā€˜somebody else has already request a planeā€™ and i dont see any plane one the map (Sry form my bad english)

after knocking on the door go to the blip at sany airfield wher you will get a gas can. The airplane is in the hanger

after i knockin the door i cant see the blip