- Initiateur de la discussion
Regnam
Geek suprême
- Messages
- 702
- Score réaction
- 66
- Points
- 130
Bonjour, après avoir activer la faim sur le serveur, j'essaye de mettre la nourriture en vente dans le menu F4 (eliteF4menu).
Donc, je crée le métier cuisinier (avec le cook = true).
J'ajoute de la nourriture dans le dossier Addon -> Darkrpmodification -> Lua -> Darkrpcustomthings -> Food.
Et voici ce qu'il y a dedans:
Sauf que après reboot, on va dans la catéorie F4 il est écrit: "Nothing is Avalaible!"
Et quand on se met cuisinier, il n'est rien marquer dans la catégorie.
Donc, je crée le métier cuisinier (avec le cook = true).
J'ajoute de la nourriture dans le dossier Addon -> Darkrpmodification -> Lua -> Darkrpcustomthings -> Food.
Et voici ce qu'il y a dedans:
--[[---------------------------------------------------------------------------
DarkRP custom food
---------------------------------------------------------------------------
This file contains your custom food.
This file should also contain food from DarkRP that you edited.
THIS WILL ONLY LOAD IF HUNGERMOD IS ENABLED IN darkrp_config/disabled_defaults.lua.
IT IS DISABLED BY DEFAULT.
Note: If you want to edit a default DarkRP food, first disable it in darkrp_config/disabled_defaults.lua
Once you've done that, copy and paste the food item to this file and edit it.
The default food can be found here:
https://github.com/FPtje/DarkRP/blob/master/gamemode/modules/hungermod/sh_init.lua#L33
Add food under the following line:
---------------------------------------------------------------------------]]
DarkRP.createFood( "Pizza au fromage", {
model = "models/cheesepizza01/cheesepizza01.mdl",
energy = 35,
price = 99,
})
DarkRP.createFood( "Pizza bacon", {
model = "models/peppizza02/peppizza02.mdl",
energy = 25,
price = 89,
})
DarkRP.createFood( "Bacon", {
model = "models/bacon01/bacon01.mdl",
energy = 25,
price = 89,
})
DarkRP.createFood( "Boisson", {
model = "models/chocolateshake01/chocolateshake01.mdl",
energy = 35,
price = 99,
})
DarkRP.createFood( "Spaghetti", {
model = "models/bowlofspaghetti01/bowlofspaghetti01.mdl",
energy = 35,
price = 99,
})
DarkRP.createFood( Twinkie", {
model = "models/twinkie01/twinkie01.mdl",
energy = 35,
price = 99,
})
DarkRP custom food
---------------------------------------------------------------------------
This file contains your custom food.
This file should also contain food from DarkRP that you edited.
THIS WILL ONLY LOAD IF HUNGERMOD IS ENABLED IN darkrp_config/disabled_defaults.lua.
IT IS DISABLED BY DEFAULT.
Note: If you want to edit a default DarkRP food, first disable it in darkrp_config/disabled_defaults.lua
Once you've done that, copy and paste the food item to this file and edit it.
The default food can be found here:
https://github.com/FPtje/DarkRP/blob/master/gamemode/modules/hungermod/sh_init.lua#L33
Add food under the following line:
---------------------------------------------------------------------------]]
DarkRP.createFood( "Pizza au fromage", {
model = "models/cheesepizza01/cheesepizza01.mdl",
energy = 35,
price = 99,
})
DarkRP.createFood( "Pizza bacon", {
model = "models/peppizza02/peppizza02.mdl",
energy = 25,
price = 89,
})
DarkRP.createFood( "Bacon", {
model = "models/bacon01/bacon01.mdl",
energy = 25,
price = 89,
})
DarkRP.createFood( "Boisson", {
model = "models/chocolateshake01/chocolateshake01.mdl",
energy = 35,
price = 99,
})
DarkRP.createFood( "Spaghetti", {
model = "models/bowlofspaghetti01/bowlofspaghetti01.mdl",
energy = 35,
price = 99,
})
DarkRP.createFood( Twinkie", {
model = "models/twinkie01/twinkie01.mdl",
energy = 35,
price = 99,
})
Sauf que après reboot, on va dans la catéorie F4 il est écrit: "Nothing is Avalaible!"
Et quand on se met cuisinier, il n'est rien marquer dans la catégorie.