GithubHelp home page GithubHelp logo

esx_nightclub's Introduction

FiveM esx_nightclub

This script is based on the "esx_unicornjob" and has been deprecated accordingly!

https://github.com/LuaDeldu/esx_unicornjob

If the unicorn job is already used on the server, the items do NOT need to be re-imported into the database

FXServer ESX NIGHTCLUB JOB


[REQUIREMENTS]:

IPL Pack: bob_74

You can customize the Nightclub in “esx_nightclub/scripts/nightclub.lua” see: Wiki/After-Hours:-Nightclubs


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 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]

    - 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 car without dust
    - Players can miss the crafting part (~10% miss) and lose the components used
    - Billing menu
    - Girl are not supplied

[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

Watchers

 avatar James Cloos 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.