[ESX] Cooker Job (Based on Unicorn job)

HI!! Its my first release!!!
So i made that plugin to my server but my server closed so rip…
You can do whatever you want with this plugin.

Installing:

  1. Run in your database the esx_cozinheirojob.sql;
  2. Place the esx_cozinheirojob in your resource folder;
  3. write this “start esx_cozinheirojob” in you server.cfg file;
  4. enjoy!!!

If you want to eat the food you need: [esx_basicneeds] and add this in
esx_basicneeds/server/main.lua https://github.com/ESX-Org/esx_basicneeds

[Code line]
ESX.RegisterUsableItem(‘ovoes’, function(source)
local xPlayer = ESX.GetPlayerFromId(source)

xPlayer.removeInventoryItem('ovoes', 1)

TriggerClientEvent('esx_status:add', source, 'hunger', 200000)
TriggerClientEvent('esx_basicneeds:onEat', source)
TriggerClientEvent('esx:showNotification', source, _U('used_chocolate'))

end)

ESX.RegisterUsableItem(‘vitelaass’, function(source)
local xPlayer = ESX.GetPlayerFromId(source)

xPlayer.removeInventoryItem('vitelaass', 1)

TriggerClientEvent('esx_status:add', source, 'hunger', 600000)
TriggerClientEvent('esx_basicneeds:onEat', source)
TriggerClientEvent('esx:showNotification', source, _U('used_chocolate'))

end)

ESX.RegisterUsableItem(‘polvogre’, function(source)
local xPlayer = ESX.GetPlayerFromId(source)

xPlayer.removeInventoryItem('polvogre', 1)

TriggerClientEvent('esx_status:add', source, 'hunger', 600000)
TriggerClientEvent('esx_basicneeds:onEat', source)
TriggerClientEvent('esx:showNotification', source, _U('used_chocolate'))

end)

ESX.RegisterUsableItem(‘hamb’, function(source)
local xPlayer = ESX.GetPlayerFromId(source)

xPlayer.removeInventoryItem('hamb', 1)

TriggerClientEvent('esx_status:add', source, 'hunger', 900000)
TriggerClientEvent('esx_basicneeds:onEat', source)
TriggerClientEvent('esx:showNotification', source, _U('used_chocolate'))

end)
[Finish Code Line]

I didnt translate to english so if you want to translate, my language is Portuguese, go ahead to translate to yours.

I convet this restaurant map so you can use it.

Download: esx_cozinheirojob-20190207T084558Z-001.zip (33.8 KB)

MAP: carloja3-20190207T194346Z-001.zip (24.1 KB)

Owner of the map: https://www.gta5-mods.com/maps/restaurant

Video: https://youtu.be/9w3CMNfvN7o

Items: items.sql (1.6 KB)

11 Likes

Lookin good but need some ss and videos.

1 Like

ok i will make one now!!

2 Likes

Could you fix .SQL file? I have error
image

1 Like

let me see

1 Like

That shouldn’t be something like: INSERT INTO jobs?

1 Like

Which restaurant? Please give proper credits and ask the creator for permission to release this on the FiveM forums. Same goes for the unicorn job.

See Releases Rules and F.A.Q

1 Like

o ya sry forgot.

1 Like

ok download again… i think its fixed.

1 Like

Yes, now is fine. I’ll test that :slight_smile:

1 Like

Good my friend

1 Like

Brother’s fine resource but where’s the front door.

1 Like

Nice Release :wink:

1 Like

Ok, so:

  1. F6 doesn’t work
  2. I can’t prepare integrends (this table where is a price)
  3. I can’t cook
1 Like

I used Teleports.

1 Like

humm
let me see. i made to my server. like the F6 menu i didnt use.

1 Like
1 Like

probably I know my problem
In .SQL file you don’t added items (ovo itd.)

1 Like

ya that true. sry my fault. You can do more than i did but you need to change in the code.

1 Like

there you have it. Items: items.sql (1.6 KB)

1 Like