GithubHelp home page GithubHelp logo

esx_nightclub's Introduction

FXserver esx_nightclub

FXServer ESX NIGHTCLUB JOB

[REQUIREMENTS]

Nightclub Interior (IPL Loader)
    bob74_ipl   => (https://github.com/Bob74/bob74_ipl)
    
Player management (billing and boss actions)
    esx_society => (https://github.com/ESX-Org/esx_society)
    esx_billing => (https://github.com/ESX-Org/esx_billing)

Items effects (hunger, thirst, drunk)
    esx_status => (https://github.com/ESX-Org/esx_status)
    esx_basicneeds => (https://github.com/ESX-Org/esx_basicneeds)
    esx_optionalsneeds => (https://github.com/ESX-Org/esx_optionalneeds)
    Items and effects should be added separately in their appropriate files
    You need to add animations + items effects (basicneeds, optionnalneeds) for an optimal experience

[INSTALLATION]

CD in your resources/[esx] folder

Import esx_nightclub.sql in your database

Add this in your server.cfg :

start esx_nightclub

If you want player management you have to set Config.EnablePlayerManagement to true in config.lua 
You can config VaultManagement & Helicopters with true/false (don't forget to comment the area in the same file)

If you want real effects, add items and effects in esx_basicneeds and esx_optionalsneeds.

Here are examples of what you could add:

esx_basicneeds\server\main.lua:

ESX.RegisterUsableItem('icetea', function(source)

local xPlayer = ESX.GetPlayerFromId(source)

xPlayer.removeInventoryItem('icetea', 1)

TriggerClientEvent('esx_status:add', source, 'thirst', 300000)
TriggerClientEvent('esx_basicneeds:onDrink', source)
TriggerClientEvent('esx:showNotification', source, _U('used_icetea'))

end)

ESX.RegisterUsableItem('mixapero', function(source)

    local xPlayer = ESX.GetPlayerFromId(source)

    xPlayer.removeInventoryItem('mixapero', 1)

    TriggerClientEvent('esx_status:add', source, 'hunger', 100000)
    TriggerClientEvent('esx_status:remove', source, 'thirst', 50000)
    TriggerClientEvent('esx_basicneeds:onEat', source)
    TriggerClientEvent('esx:showNotification', source, _U('used_mixapero'))

end)

esx_optionalneeds\server\main.lua:

ESX.RegisterUsableItem('tequila', function(source)

local xPlayer = ESX.GetPlayerFromId(source)

xPlayer.removeInventoryItem('tequila', 1)

TriggerClientEvent('esx_status:add', source, 'drunk', 300000)
TriggerClientEvent('esx_optionalneeds:onDrink', source)
TriggerClientEvent('esx:showNotification', source, _U('used_tequila'))

end)

ESX.RegisterUsableItem('jagerbomb', function(source)

local xPlayer = ESX.GetPlayerFromId(source)

xPlayer.removeInventoryItem('jagerbomb', 1)

TriggerClientEvent('esx_status:add', source, 'drunk', 500000)
TriggerClientEvent('esx_status:remove', source, 'hunger', 10000)
TriggerClientEvent('esx_status:remove', source, 'thirst', 70000)
TriggerClientEvent('esx_optionalneeds:onDrink', source)
TriggerClientEvent('esx:showNotification', source, _U('used_jagerbomb'))

end)

[FEATURES]

Nightclub job
    Fully customizable job
    Boss, Bartender, Dancer grades
    Cloakroom, Vault, Fridge, Vehicles, BossActions
    Cloakroom : Dancer clothing with special movement effect, multiple clothes for men or women
    Shops (harvesting) for components (alcoholic drinks, appetizers, non-alcoholic drinks)
    Crafting menu for Bosses + Bartender (only with the right clothing) : coktails, mix appetizers
    Spawning & delete Vehicles
    working Teleporters
    Players can miss the crafting part (~10% miss) and lose the components used
    Billing menu
    Girl are not supplied
    working LCD Screens
    Phone/gcphone Support

[SHOPS (HARVESTING) AREAS]

Alcoholic drinks => In the Nightclub
Non-alcoholic drinks => In the Nightclub
Appetizers => In the Nightclub

esx_nightclub's People

Contributors

sfl-master avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

esx_nightclub's Issues

Stock and Fridge issues

We are using the actual esx stuff and also added the addoninventory pull fix.
police and mechanic etc stock works well.

But the nighclub stock and fridge throws an label nil value when getting items in the code for example

OpenGetStocksMenu

Stock and Fridge

Everything works other than when I go to buy drinks it wont let me and when i put stuff in the safe or fridge I can’t take them back out, can someone please help.

There is nowhere to buy drinks inside the club.

There is nowhere to buy drinks inside the club. No markers etc

UPDATE:
So actually having a job at a nightclub there i can buy drinks but it always says i dont have enough money.

UPDATE 2:
It takes society money when buying drinks!! WTF is going on...

Yeah im pretty sure this is not setup right at all, EnablePlayerManagement is referenced nowhere in the code so it does nothing. I just dont understand what this is suppose to do.

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.