Git Product home page Git Product logo

lfuelling / esx_drugfarms Goto Github PK

View Code? Open in Web Editor NEW
40.0 7.0 17.0 34 KB

FiveM/CitizenFX plugin that enables teleports to union depository and buildings from the bikers dlc with weed farms, meth lab, coke lab, document forgery and two biker club houses.

License: MIT License

Lua 100.00%
esx biker-club-houses weed-farms coke-lab meth-lab esx-drugfarms fivem fivem-script fivem-roleplay-servers essentialmode

esx_drugfarms's Introduction

esx_drugfarms Latest Release

This plugin, which is originally based on vrp_drugfarms by D3uxx, enables access to the weed farm, the meth lab, coke lab, document forgery, biker club houses and bunkers from GTA: Online in esx. This mod does not provide any additional functionality except teleportation and the map markers.

  • If you fork this, you won't get updates.
    • Consider Starring instead if you don't want to make a contribution.

Dependencies

Note: not having esx_policejob running won't have any negative side effects. If you use another police plugin which has a jobId different than police, you can change the value in config.lua.

Installation

  1. Place this folder in resources/[esx]
  2. Configure the plugin in config.lua
  3. Add start esx_drugfarms to your server.cfg

Usage

  1. Go to marker
  2. Press e/interact

Customization

The configuration of the interiors is to be done in bob74_ipl. Usually (last time I checked) there is a LoadDefault function at the end of each script in bob74_ipl. In this function, you can configure what is loaded by changing the arguments passed to the Set or Enable functions. For more information see this issue comment.

Credit

As stated above this mod was originally created by D3uxx.

esx_drugfarms's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

esx_drugfarms's Issues

what is this

hi kinda new to this what is this is it just the building or can we interact with them I don't see anywhere I can interact with them

Drugs are not harvestable

I cloned the repo and its depedencies and it seems to work. But when entering a lab, there are no actions the player can do. Am I missing something or am I supposed to implement it myself?

More I18N

Currently there are only english and spanish translations. The spanish ones were taken from the original mod so they might not be perfect, also I added some new ones, they are just english (in the spanish language file).

It would be nice to have more languages.

Already done:

  • English
  • Dutch (#5)
  • Czech (#7)
  • Spanish (#8)
  • French (#9)
  • German (#12)
  • Italian (#13)

How to configure interiors?

Okay so when i installed the script, There is no things in the room? In the weed farm there is only a empty room. What should i do? :)

bob74_ipl help

-- Meth lab: 1009.5, -3196.6, -38.99682
exports('GetBikerMethLabObject', function()
    return BikerMethLab
end)

BikerMethLab = {
    interiorId = 247041,

    Ipl = {
        Interior = {
            ipl = "bkr_biker_interior_placement_interior_2_biker_dlc_int_ware01_milo",

            Load = function()
                EnableIpl(BikerMethLab.Ipl.Interior.ipl, true)
            end,
            Remove = function()
                EnableIpl(BikerMethLab.Ipl.Interior.ipl, false)
            end
        }
    },
    Style = {
        none = "",
        empty = "meth_lab_empty",
        basic = {
            "meth_lab_basic",
            "meth_lab_setup"
        },
        upgrade = {
            "meth_lab_upgrade",
            "meth_lab_setup"
        },

        Set = function(style, refresh)
            BikerMethLab.Style.Clear(false)

            if style ~= "" then
                SetIplPropState(BikerMethLab.interiorId, style, true, refresh)
            else
                if refresh then
                    RefreshInterior(BikerMethLab.interiorId)
                end
            end
        end,
        Clear = function(refresh)
            SetIplPropState(BikerMethLab.interiorId, {
                BikerMethLab.Style.empty,
                BikerMethLab.Style.basic,
                BikerMethLab.Style.upgrade
            }, false, refresh)
        end
    },
    Security = {
        none = "",
        upgrade = "meth_lab_security_high",

        Set = function(security, refresh)
            BikerMethLab.Security.Clear(false)

            if security ~= "" then
                SetIplPropState(BikerMethLab.interiorId, security, true, refresh)
            else
                if refresh then
                    RefreshInterior(BikerMethLab.interiorId)
                end
            end
        end,
        Clear = function(refresh)
            SetIplPropState(BikerMethLab.interiorId, BikerMethLab.Security.upgrade, false, refresh)
        end
    },
    Details = {
        production = "meth_lab_production", -- Products

        Enable = function(details, state, refresh)
            SetIplPropState(BikerMethLab.interiorId, details, state, refresh)
        end
    },

    LoadDefault = function()
        BikerMethLab.Ipl.Interior.Load()
        BikerMethLab.Style.Set(BikerMethLab.Style.upgrade)
        BikerMethLab.Security.Set(BikerMethLab.Security.upgrade)
        BikerMethLab.Details.Enable(BikerMethLab.Details.production, false)

        RefreshInterior(BikerMethLab.interiorId)
    end
}

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.