Installation
1 - Insert the sql files
INSERT INTO `addon_account` (name, label, shared) VALUES
('society_lps', 'Le Petit Snack', 1)
;
INSERT INTO `addon_inventory` (name, label, shared) VALUES
('society_lps', 'Le Petit Snack', 1)
;
INSERT INTO `datastore` (name, label, shared) VALUES
('society_lps', 'Le Petit Snack', 1)
;
INSERT INTO `jobs` (name, label) VALUES
('lps', 'Le Petit Snack')
;
INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES
('lps',0,'recrue','Serveur',12,'{}','{}'),
('lps',1,'barman',"Barman",24,'{}','{}'),
('lps',2,'manager','Manager',36,'{}','{}'),
('lps',3,'boss',"Patron",48,'{}','{}')
;2 - Add the items in your inventory
- ['frenchy_panini'] = {
label = 'Frenchy Panini',
description = "Un panini à la frenchy",
weight = 1,
stack = true,
close = true,
client = {
status = { hunger = 200000 },
anim = 'eating',
prop = 'burger',
usetime = 2500,
notification = 'Tu a manger un delicieux Frenchy Panini'
},
},
['frenchy_sandwich'] = {
label = 'Frenchy Sandwich',
description = "Un sandwich Frenchy",
weight = 1,
stack = true,
close = true,
client = {
status = { hunger = 200000 },
anim = 'eating',
prop = 'burger',
usetime = 2500,
notification = 'Tu a manger un delicieux Frenchy Sandwich'
},
},
['juice_mangue'] = {
label = 'Jus de Mangue',
description = "Un jus de mangue frais.",
weight = 1,
stack = true,
close = true,
client = {
status = { hunger = 200000 },
anim = 'eating',
prop = 'burger',
usetime = 2500,
notification = 'Tu a manger un delicieux Frenchy Sandwich'
},
},
['juice_peach'] = {
label = 'Jus de Pêche',
description = "Un jus de pêche rafraîchissant.",
weight = 1,
stack = true,
close = true,
client = {
status = { thirst = 30000 },
anim = { dict = 'mp_player_intdrink', clip = 'loop_bottle' },
prop = { model = 'prop_cs_cola', pos = vec3(0.01, 0.01, 0.06), rot = vec3(0.0, 0.0, 0.0) },
usetime = 2500,
notification = 'Vous avez bu un Jus de Pêche'
},
},
['juice_fraise'] = {
label = 'Jus de Fraise',
description = "Un jus de fraise sucré.",
weight = 1,
stack = true,
close = true,
client = {
status = { thirst = 30000 },
anim = { dict = 'mp_player_intdrink', clip = 'loop_bottle' },
prop = { model = 'prop_cs_cola', pos = vec3(0.01, 0.01, 0.06), rot = vec3(0.0, 0.0, 0.0) },
usetime = 2500,
notification = 'Vous avez bu un Jus de Pêche'
},
},
['verre'] = {
label = 'Verre',
description = "Un verre vide pour servir des boissons.",
weight = 1,
stack = true,
},
['charcuterie'] = {
label = 'Charcuterie',
description = "Un assortiment de charcuterie.",
weight = 1,
stack = true,
},
['pain'] = {
label = 'Pain',
description = "Un morceau de pain frais.",
weight = 1,
stack = true,
}
['frenchy_panini'] = {
['name'] = 'frenchy_panini',
['label'] = 'Frenchy Panini',
['weight'] = 200,
['type'] = 'item',
['image'] = 'frenchy_panini.png',
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'Un panini à la frenchy. Requinque bien !'
},
['frenchy_sandwich'] = {
['name'] = 'frenchy_sandwich',
['label'] = 'Frenchy Sandwich',
['weight'] = 200,
['type'] = 'item',
['image'] = 'frenchy_sandwich.png',
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'Un sandwich Frenchy bien garni.'
},
['juice_mangue'] = {
['name'] = 'juice_mangue',
['label'] = 'Jus de Mangue',
['weight'] = 100,
['type'] = 'item',
['image'] = 'juice_mangue.png',
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'Un jus de mangue frais et sucré.'
},
['juice_peach'] = {
['name'] = 'juice_peach',
['label'] = 'Jus de Pêche',
['weight'] = 100,
['type'] = 'item',
['image'] = 'juice_peach.png',
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'Un jus de pêche rafraîchissant.'
},
['juice_fraise'] = {
['name'] = 'juice_fraise',
['label'] = 'Jus de Fraise',
['weight'] = 100,
['type'] = 'item',
['image'] = 'juice_fraise.png',
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'Un jus de fraise bien sucré.'
},
['verre'] = {
['name'] = 'verre',
['label'] = 'Verre',
['weight'] = 50,
['type'] = 'item',
['image'] = 'verre.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = false,
['combinable'] = nil,
['description'] = 'Un verre vide pour servir des boissons.'
},
['charcuterie'] = {
['name'] = 'charcuterie',
['label'] = 'Charcuterie',
['weight'] = 200,
['type'] = 'item',
['image'] = 'charcuterie.png',
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'Un assortiment de charcuterie savoureuse.'
},
['pain'] = {
['name'] = 'pain',
['label'] = 'Pain',
['weight'] = 150,
['type'] = 'item',
['image'] = 'pain.png',
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'Un morceau de pain frais et croustillant.'
},
3 - Add the images
4 - Move the folder for your ressources
5 - Add this in your server.cfg
ensure Mickystudio_LePetitSnackJob6 - Restart your server
7 - Enjoy 😄
Mis à jour