[Release] ESX Night Club V2

I’m not the creator of this script, all credit go to @SFL_Master
Original Night Club

I only add some features, like security mission and limousine driver mission, and some other stuff

Features:

- Security Mission :

If you are employed, you can start a security mission,
front of the entrance of the club.

That will create group of customer, you have to analyze the group to let in the best groups, those with girls or rich people.

If you let bad guy enter, you will lose some girls.
With girls your club can make more money, groups with more customers will come more frequently, bonus money reward etc…
The groups will fill the club as well…

Be careful, some guys will offer you money or drugs for let them go in.
Reject and you have a chance for make them angry and attack, accept and you will create a general melee in the club if you have too much bad guy.
If a melee start, nobody will come anymore (its like a mission failure).

- Driver Mission :

It’s like a taxi mission but with different type of customer with different mission (normal, fast/timer, slow/no crash)

- Easy Dance :

You can dance and change type of dance easily in the club.

- Closed Club :

If no player start the security mission, the club is close for all other player who are not employed.

NOTE : I used radialmenu for opening job menu, so if you want to go back in normal key opening, change it by yourself ^^

NOTE.2: Not Required but I recommend to use EUP 8.0 for having the right security uniform

https://github.com/FonWasH/esx_nightclub_v2

Dependency
-Essential Mode
-es_extended
-esx_society
-esx_skin
-Radial Menu
-bob74_ipl
-Mythic Progress Bar

Sorry for my english.

6 Likes

Good work mate!!

1 Like

Thanks ^^

pls add video or screenshots

Sounds like a good resource to test on the server.

1 Like

I don’t see any ped inside.

You need to make them enter with the security mission

I’m in vacancy at the moment, I will add more when I’ll come back

@FonWasH Please check the repo for a pull request about the English translation.

Request merged, thanks mate.

The vault and the fridge seems to not work on storing items and getting them out.

for the police and mechanic etc it works. Since i added the pull request fix.

But with the nightclub script it doenst work sadly :frowning:

how can u start security mission ? still saying some error with im not safe or something.

1 - you need to be employed in night club, with security grade or higher
2 - take the security clothes inside the club
3 - go outside, near the entrance and a notification prompt will appear, just press E and the mission will start

how can be adapted from esx_phone to gcphone plugin the driver job?. Thanks

I use gcphone too, you have too edit config in gcphone.

This is a really fckn good script.

But I have 3 questions.

-How or where I can start the driver mission? :white_check_mark:SOLVED
-And why the F6 menu doesn’t work?? It’s just me?? :white_check_mark:SOLVED
-Why in my phone-ALphone (phone3+blackberry item), the Number Nightclub doesn’t appear?

I don’t find the fix in the code… sorry… :frowning: feels bad…

keep it up!

I got it!!

client.lua Line 2205 - 2297.

Copy and paste this:

-- Key Controls
Citizen.CreateThread(function()
        while true do
		
            Citizen.Wait(10)

            if CurrentAction ~= nil then
			
                SetTextComponentFormat('STRING')
                AddTextComponentString(CurrentActionMsg)
                DisplayHelpTextFromStringLabel(0, 0, 1, -1)

                if IsControlJustReleased(0, Keys['E']) then
                    if CurrentAction == 'entry_club' then
                        ESX.TriggerServerCallback(
                            'esx_nightclub:isOpen',
                            function(isOpen)
                                if isOpen then
                                    TPClub(true)
                                elseif IsJobTrue() and IsEmployed() then
                                    TPClub(true)
                                else 
                                    ESX.ShowNotification("~r~El Club Paradise está cerrado.")
                                end
                            end
                        )
                    end

                    if CurrentAction == 'exit_club' then
                        TPClub(false)
                    end
                end

                if IsControlJustReleased(0, Keys['E']) and IsJobTrue() then
                    if CurrentAction == 'menu_cloakroom' and IsEmployed() then
                        OpenCloakroomMenu()
                    end

                    if CurrentAction == 'job_security' and IsEmployed() then
                        if not missionStarted then
                            TriggerServerEvent('esx_nightclub:StartMissionSecurity')
                        end
                    end

                    if CurrentAction == 'menu_vault' and IsEmployed() then
                        OpenVaultMenu()
                    end

                    if CurrentAction == 'spawn_car' then
                        SpawnCarNightClub()
                    end

                    if CurrentAction == 'despawn_car' then
                        DespawnCarNightClub()
                    end

                    if CurrentAction == 'menu_fridge' and IsEmployed() then
                        OpenFridgeMenu()
                    end

                    if CurrentAction == 'menu_shop' and IsEmployed() then
                        OpenShopMenu(CurrentActionData.zone)
                    end

                    if CurrentAction == 'menu_boss_actions' and IsGradeBoss() then
                        local options = {
                            wash = Config.EnableMoneyWash
                        }

                        ESX.UI.Menu.CloseAll()

                        TriggerEvent(
                            'esx_society:openBossMenu',
                            'nightclub',
                            function(data, menu)
                                menu.close()
                                CurrentAction = 'menu_boss_actions'
                                CurrentActionMsg = _U('open_bossmenu')
                                CurrentActionData = {}
                            end,
                            options
                        )
                    end

                    CurrentAction = nil
                end
            end
			
			if IsControlJustReleased(0,  Keys['F6']) and IsJobTrue() and not ESX.UI.Menu.IsOpen('default', GetCurrentResourceName(), 'nightclub_actions') then
				OpenSocietyActionsMenu()
			end
        end
	end)

And F6 menu will works for you :smiley:

The added part is:

if IsControlJustReleased(0,  Keys['F6']) and IsJobTrue() and not ESX.UI.Menu.IsOpen('default', GetCurrentResourceName(), 'nightclub_actions') then
				OpenSocietyActionsMenu()
end

Another thing about Crafting Menu with the Barman grade.

If I’m Barman, in my F6 menu the option “Coktails” doesn’t appear… and I think the wrong thing is around here:

client.lua - line 973

function OpenSocietyActionsMenu()
    local elements = {}


    table.insert(elements, {label = _U('billing'), value = 'billing'})
    table.insert(elements, {label = _U('mission'), value = 'mission'})
    if isBarman or IsGradeBoss() then
        table.insert(elements, {label = _U('crafting'), value = 'menu_crafting'})
    end
    if IsGradeBoss() or IsSecurity() then
        table.insert(elements, {label = _U('search'), value = 'body_search'})
    end

The fix for this is:

  1. Change in client.lua line 973: if isBarman or IsGradeBoss() then
    to if IsBarman() or IsGradeBoss() then

  2. Add the following code in client.lua - line 787

function IsBarman()
    if PlayerData ~= nil then
        local IsBarman = false
        if PlayerData.job.grade_name == 'barman' then
            IsBarman = true
        end
        return IsBarman
    end
end

Should fix.

Unlisted until download fixed