[ESX][Free] - dotsoft_cooking | Cooking Simulator

Description

Name’s Jason, I made this resource for my server as I couldn’t find any other cooking resources, so here you go. It detects nearby stove, toaster and microwave objects and allows you to cook different recipes if you have the right ingredients. You can add more recipes in the config file as well as more ingredients. The items come with their own icons ready for you to use them in your inventory resource.

Showcase

Screenshots

Features

  • Functional Stoves
  • Functional Toasters
  • Functional Microwaves
  • Recipes
  • Ingredients

Updates

  • Added weight checks

Download
GitHub: GitHub - jvson03/fivem-dotsoft-cooking: Cooking Simulator for FiveM [ESX] Roleplay servers.

Other Resources

11 Likes

you should probably add checks on the server events as they are pretty easy to exploit atm

RegisterServerEvent('dotsoft_cooking:finalProduct')
AddEventHandler('dotsoft_cooking:finalProduct', function(product)
        local _source = source
        local xPlayer = ESX.GetPlayerFromId(source)
        xPlayer.addInventoryItem(product, Config.ProductAmount)
end)
3 Likes

I thought about it but due to me being new in FiveM Development, I’m still working my way in. If you have any ideas on how to do that I’d appreciate it! :grinning:

1 Like

Nice idea however i have seen something similar posted before which I think was for a cooker.

You should really start to use a target system be it esx/qb and grab the entity that way, be a great starting point and very useful to use if you are new to fivem.

4 Likes

I was recommended qTarget by a friend, will look into it.

1 Like

You really should look into it as it will remove the checking of nearest objects and the work load that follows that.

4 Likes

will u add qtarget?

3 Likes

Yeah, the update will be released these days.

3 Likes

What difference between bt-target en qtarget ? Did they use same exports ?

2 Likes

There are small format differences easy to convert one to the other usually

2 Likes

I have been working for a long time with BT-Target, but as I see a lot of requests about Qtarget … I wonder which one is best

1 Like

qTarget is inspired by BT-Target and is more optimized than the original.

1 Like

Doesnt work for me… When i go to a stove and press “E”, Menu opens. If i dont have needed ingredients, and try to select a menu item, it says “missing ingredients” as pretended, BUT if i have all ingredients, and try to cook, nothing happens and the script stops to work.

No Error in Server or client Console.

Edit:

Got it!

You missed some lines for toaster and stove in server main.lua:

Change:

                if not (xPlayer.getInventoryItem(Config.Items[v1.ingredient]).count >= v1["amount"]) then
                    enough = false
                    cb(false)
                    break
                end
            end

to:

                if not (xPlayer.getInventoryItem(Config.Items[v1.ingredient]).count >= v1["amount"]) then
                    enough = false
                    cb(false)
                    break
                else
                    enough = true
                end
            end
4 Likes

Thanks for this king.

Was having the same issue.

4 Likes

Good Idea!

1 Like

qtarget is much better and more advanced
I redid this resource with qtarget and nh-context

sounds interesting, good work.

1 Like

My bad, updated it to github.

Thank you! :grinning:

do you have a link to your qtarget version?

1 Like