Giter Club home page Giter Club logo

esx_greenhouse's Introduction

ESX Greenhouses

This FiveM ESX script is adding Greenhouses to your Server. With Greenhouses, you can buy seeds and plant them. These planted seeds will grow over time into plants that can be harvested and sold.

License GNU-GPL v3 Lates release Discord

Server Requirements

  • esx_legacy v1.8.5 or higher

  • oxmysql v2.3.0 or higher

  • Onesync enabled

  • Serverversion 5949 or higher

Build/Development Requirements

  • Node v14 or higher

  • Yarn


Getting Started - Download & Installation

Download

Installation

  • execute the build.sql file in esx_greenhouse/sql to create all required sql tables

  • add to your server.cfg the following line at the bottom of your start order

    ensure esx_greenhouse
  • Make sure that Config.Multichar is enabled in es_extended/config.lua

    Config.Multichar = true

SQL Update at resource Update

  • To update esx_greenhouse, download the newer version and run update.sql unless the above readme says otherwise.

  • after updating the sql, following the steps of the normal Installation.

Adding plants to Greenhouses

To add purchasable seeds to a greenhouse, you need to add them to the greenhouse_plants table in your MySQL / MariaDB database.

There you will find two template plants tied to greenhouse_7. Each plant needs a name, a label, a price, a sell price, a maximum reward, a weight in g, a seed weight in g and the greenhouse id.

Example:

(name) (label) (price) (sellprice) (maximum reward) (plant weight) (seed weight) (Greenhouse)
pgh_p_name pgh_p_label pgh_p_price pgh_p_sellprice pgh_p_maxProduce pgh_p_weight p_weight f_pgh_id
banana Banana 15 190 6 200 5 1

Available languages

  • German

Getting Started - Development

Install Dependencies

Navigate into esx_greenhouse resource and execute the following command, to install dependencies

yarn install

Development

Hot Building

While developing your resource, this boilerplate offers a watchscript that will automatically hot rebuild on any change within the client or server directories.

yarn watch

This script still requires you restart the resource for the changes to be reflected in-game

Entry Points

Client - ./client/index.ts Server - ./server/index.ts

Production Build

Once you have completed the development phase of your resource, you must create an optimized & minimized production build, using the build script.

yarn build

Legal

License

esx_greenhouse - ESX Skript for ESX Framework used in FiveM

Copyright (C) 2022 Korgron

This program Is free software: you can redistribute it And/Or modify it under the terms Of the GNU General Public License As published by the Free Software Foundation, either version 3 Of the License, Or (at your option) any later version.

This program Is distributed In the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty Of MERCHANTABILITY Or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License For more details.

You should have received a copy Of the GNU General Public License along with this program. If Not, see http://www.gnu.org/licenses/.

esx_greenhouse's People

Contributors

majorkorgi avatar

Watchers

 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.