Code Monkey home page Code Monkey logo

es_stockmarket's Introduction

es_stockmarket

Adds a full featured stock trading app to your FiveM server. It fully intergrates with EssentialMode! :)

There’s also an API so you can add your own stocks to the app.

Installation

  • Download latest release
  • Make sure EssentialMode is up and running
  • Import es_stockmarket.sql into your database
  • Add ensure es_stockmarket to your configuration file for startup
  • Start your server :slight_smile:

Ingame type /openstocks to open the window, you can intergrate this with anything of your choosing.

Developer information

To add a stock you can use the following event in your script:

TriggerEvent("es_stockmarket:addStock", "Abbreviation", "Full name", baseWorth)

Parameter 1 and 2 are strings, the third is an integer what the “base” value is for the stock. Server owner information

There are config options that are available for your configuration file. These are the following:

-- Time in MS to update the stock market prices
set es_stockmarket_pricingTimer 30000

-- The lowest possible randomizer
set es_stockmarket_minRandom 2

-- The highest possible randomizer
set es_stockmarket_maxRandom 20

-- The divider that is used to calculate the new prices
set es_stockmarket_divider 10

-- The lowest possible percentage of the base worth that the value of a stock can be
set es_stockmarket_lowestBasePercent 70

-- The highest possible percentage of the base worth that the value of a stock can be
set es_stockmarket_highestBasePercent 200

Screenshots

(optional)

Rent a server with EssentialMode pre-installed!

Go to https://zap-hosting.com/EssentialMode and use code kanersps-a-2529 for 10% off on all products for life! They will even install EssentialMode for you!

es_stockmarket's People

Contributors

actuallykane avatar kanersps 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.