Coder Social home page Coder Social logo

mexalucard0 / erratic_coke Goto Github PK

View Code? Open in Web Editor NEW

This project forked from didrikxd/erratic_coke

0.0 0.0 0.0 579 KB

Didn't see a public version of a coke plane. Decided to make my own and release it.

License: GNU General Public License v3.0

Lua 100.00%

erratic_coke's Introduction

erratic_coke

Video showcase

FiveM forum post

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.

IMPORTANT: YOU WILL HAVE TO PROTECT THE SERVER SIDE CODE YOURSELF


Prerequisites:

  • ESX
  • A working database

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

MLO used in the video


How to install:

  1. Download the resource from GitHub
  2. Unzip it
  3. Put it in your resource folder
  4. Add "start erratic_coke" 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/erratic_coke_cl.lua'
}

server_scripts {
	'@es_extended/locale.lua',
	'locales/de.lua',
	'locales/en.lua',
	'locales/yourlanguage.lua',
	'config.lua',
    	'server/erratic_coke_sv.lua'
}

erratic_coke's People

Contributors

erraticl avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.