[ESX] esx_subway
Hello everyone…
I’m here to present a simple job.
- Company garage
- Business management menu
- Take items via props
[MLO]Subway Restaurant | FREE - FiveM Resource Development & Modding / Releases - Cfx.re Community
`
Add this to the file: ox_inventory\data\items.lua
{
coords = vec3(-1256.740234, -278.990112, 37.353382),
target = {
loc = vec3(-1256.740234, -278.990112, 37.353382),
length = 0.6,
width = 1.8,
heading = 340,
minZ = 36.35,
maxZ = 38.35,
label = 'Open personal locker'
},
name = 'subwaylocker',
label = 'Personal Locker',
owner = false,
slots = 70,
weight = 70000,
groups = {['subway'] = 0}
},
Add this to the file: ox_inventory\data\items.lua
['cola'] = {
label = 'eCola',
weight = 350,
client = {
status = { thirst = 200000 },
anim = { dict = 'mp_player_intdrink', clip = 'loop_bottle' },
prop = { model = `prop_ecola_can`, pos = vec3(0.01, 0.01, 0.06), rot = vec3(5.0, 5.0, -180.5) },
usetime = 2500,
notification = 'You quenched your thirst with cola'
}
},
['coffee'] = {
label = 'Coffee',
weight = 350,
client = {
status = { thirst = 200000 },
anim = { dict = 'mp_player_intdrink', clip = 'loop_bottle' },
prop = { model = `p_amb_coffeecup_01`, pos = vec3(0.01, 0.01, 0.06), rot = vec3(5.0, 5.0, -180.5) },
usetime = 2500,
notification = 'You quenched your thirst with coffee'
}
},
['milkshake'] = {
label = 'Milkshake',
weight = 350,
client = {
status = { thirst = 200000 },
anim = { dict = 'mp_player_intdrink', clip = 'loop_bottle' },
prop = { model = `prop_food_cb_coffee`, pos = vec3(0.01, 0.01, 0.06), rot = vec3(5.0, 5.0, -180.5) },
usetime = 2500,
notification = 'You quenched your thirst with milkshake'
}
},
['orangejuice'] = {
label = 'Orange juice',
weight = 350,
client = {
status = { thirst = 200000 },
anim = { dict = 'mp_player_intdrink', clip = 'loop_bottle' },
prop = { model = `prop_food_cb_juice02`, pos = vec3(0.01, 0.01, 0.06), rot = vec3(5.0, 5.0, -180.5) },
usetime = 2500,
notification = 'You quenched your thirst with orange juice'
}
},
Tested on ESX Legacy 1.7.5
Summary
This text will be hidden