Skip to content

esx-community/esx_unicornjob

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

* Minor cleanup

* Minor cleanup

* Minor cleanup

* Minor cleanup

* Added czech locale

* fixed upper case

* Added czech locale
ef52f4f

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

esx_unicornjob

ESX UNICORN JOB

[REQUIREMENTS]

[INSTALLATION]

  1. CD in your resources/[esx] folder

  2. Import esx_unicornjob.sql in your database

  3. Add this in your server.cfg :

start esx_unicornjob
  1. 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)

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

  • Vanilla Unicorn 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 car without dust
    • Teleport marker to be behind the bar
    • Players can miss the crafting part (~10% miss) and lose the components used
    • Billing menu
    • Girl are not supplied

[SHOPS (HARVESTING) AREAS]