Buyable Barber Shops (standelone job)

Dependency

  • ESX / es_extended - any version OR QBCore
  • Skinchanger

Functionalities

  • Become boss of 1 or more barber shops
  • Recruit people and become employee of 1 or more barber shops
  • Make haircuts to other people
  • Bill system (standelone)
  • You can create position in for chairs where you can position the clients
  • You can config everything (maxChairs, price, animations and … )
  • The admins can create a barber shop with the command createbarbershop
  • When the player is recruited he only get acces to the 2 first buttons

Optimisation

  • Everything is saved in tables and when the player leaves the information is saved (dynamic cashe)
  • The script is running at 0.01 ms

Update 28/05/2022

  • QBCore is also compatibel

Buy: Tebex
Preview: Youtube

5 Likes

nice job

3 Likes

I think you made a little mistake with the youtube link :smiley:

Nice Script! I like the tattoo shop too.
Maybe I will buy both :slight_smile:

2 Likes

Thx I updated it

Another great release
Friend, I like your work - respect

1 Like

wow very nice script

1 Like

Hello, does the script use FiveM’s anti-scammer?

Hello, have you planned the release of the qbcore version ?

1 Like

i am having an issue. I bought both the buyable tattoshops and the buyable barbershops but when I run both scripts together only the tattooshops work. The only way I can get the barbershop to work is to remove the tattooshop script and clear the server cache.

is this a standalone or u need esx

Waiting on QBCore version

2 Likes

It is now

Hello,
I bought this script as well as the tattoo shop, both give me a console error:

[script:barberjob-esx] SCRIPT ERROR: @barberjob-esx/server/server.lua:59: attempt to index a nil value (local 'xPlayer')
[script:tattoojob-esx] SCRIPT ERROR: @tattoojob-esx/server/server.lua:71: attempt to index a nil value (local 'xPlayer')

Here are the corresponding lines

@barberjob-esx/server/server.lua:59

AddEventHandler('playerDropped', function (reason)
    local xPlayer = ESX.GetPlayerFromId(source)




    for k, v in pairs(barber) do 
        if v.owner == xPlayer.identifier then 
            MySQL.Async.execute('UPDATE barber SET shop=@shop, owner=@owner, employes=@employes, money=@money WHERE id = @id', {
                ['@id'] = k,
                ['@owner'] = v.owner,
                ['@money'] = v.money,
                ['@employes'] = json.encode(v.employes),
                ['@shop'] = json.encode(v.shop)
            }) 
        end
    end

end)

@tattoojob-esx/server/server.lua:71

AddEventHandler('playerDropped', function (reason)
    local xPlayer = ESX.GetPlayerFromId(source)

    if playerTattoos[source] ~= nil then 
        MySQL.Async.execute('UPDATE users SET tattoos=@tattoos WHERE identifier = @identifier', {
            ['@identifier'] = xPlayer.identifier,
            ['@tattoos'] = json.encode(playerTattoos[source]),
        }) 
    end


    for k, v in pairs(tattoo) do 
        if v.owner == xPlayer.identifier then 
            MySQL.Async.execute('UPDATE tattoo SET shop=@shop, owner=@owner, employes=@employes, money=@money WHERE id = @id', {
                ['@id'] = k,
                ['@owner'] = v.owner,
                ['@money'] = v.money,
                ['@employes'] = json.encode(v.employes),
                ['@shop'] = json.encode(v.shop)
            }) 
        end
    end

end)

Would it be possible to have an UPDATE to be able to resell the company to another player, or to remove the owner of the company via a menu?

Given that on discord the owner of the script no longer responds, and that his discord the ticket does not work, I allow myself to post here.

so i can use this on qbcore cus i tried to get help with your tattoo shop script i got to use on qbcore but no help

1 Like

Hey can you contact me on discord ?

1 Like

sooo this works on latest qbcore?

Don’t work for Qbcore

1 Like

Help support = 0

do u need skin changer if ur using qbcore

Hello any way i can use fivem appearance