🗳️Ez-PropsMenu
Menu servant à poser des props sur la map, les lister et les supprimer !
Ce script est très simple a installer sur votre serveur, mais pour ça suivez attentivement cette documentation !
Configuration :
Vous pouvez modifier la commande d'ouverture du menu :
CommandForOpen = "props",
Vous pouvez changer le nombre de props disponible pour chaque joueur !
PropsMax = 5, -- Props posable au maximum
Customiser la couleur du menu selon vos gouts :
IconColor = "00FF93",
Vous pouvez changer le système de notifications :
CustomNotify = function(title, text, time, type)
-- type : "error" "success" "info"
--local mugshot, mugshotStr = ESX.Game.GetPedMugshot(PlayerPedId())
--ESX.ShowAdvancedNotification(title, "Informations", text, mugshotStr, 8)
--ESX.ShowNotification(text, type, time)
exports['okokNotify']:Alert(title, text, time, type, true)
end,
Voici comment ajouter une nouvelle catégorie d'objets :
Config.PropsLists = {
-- LISTE DES PROPS FIVEM : https://forge.plebmasters.de/objects
{
name = "Props ouverte a tous", -- Nom de la catégorie dans le premier menu !
job = nil, -- nil = tout le monde
job2 = nil, -- nil = tout le monde
icon = "users",
img = "https://www.iconpacks.net/icons/1/free-users-icon-267-thumb.png",
Props = {
{Label = "Fauteil Roulant", Model = "prop_wheelchair_01", icon = "box-open", img = false},
{Label = "Chaise Camping", Model = "prop_skid_chair_01", icon = "box-open", img = false},
{Label = "Chaise de rue", Model = "v_ilev_chair02_ped", icon = "box-open", img = false},
{Label = "Canapé de rue", Model = "prop_rub_couch04", icon = "box-open", img = false},
{Label = "Lampe Led", Model = "prop_worklight_03a", icon = "box-open", img = false},
{Label = "Lampe Photo", Model = "prop_studio_light_03", icon = "box-open", img = false},
{Label = "Carton Drogue Blue", Model = "prop_mp_drug_pack_blue", icon = "box-open", img = false},
{Label = "Tabouret", Model = "prop_bar_stool_01", icon = "box-open", img = false},
{Label = "Caisse D'armes", Model = "prop_lev_crate_01", icon = "box-open", img = false},
{Label = "Chariot Lingot", Model = "prop_large_gold_alt_a", icon = "box-open", img = false},
{Label = "Transat", Model = "p_patio_lounger1_s", icon = "box-open", img = false},
{Label = "Chaise en Bois", Model = "prop_rock_chair_01", icon = "box-open", img = false},
{Label = "Sac Poubelle", Model = "prop_ld_rub_binbag_01", icon = "box-open", img = false},
},
},
{
name = "Props d'EMS", -- Nom de la catégorie
job = "ambulance", -- job qui vois cette catégorie
job2 = nil, -- job2 qui vois cette catégorie
icon = "user-md",
img = "https://cdn-icons-png.flaticon.com/512/917/917172.png",
Props = {
{Label = "Fauteil Roulant", Model = "prop_wheelchair_01", icon = "wheelchair", img = "https://link.fr/image.png"},
{Label = "Lit médical", Model = "v_med_bed2", icon = "procedures", img = "https://link.fr/image.png"},
{Label = "Boite médical", Model = "xm_prop_smug_crate_s_medical", icon = "briefcase-medical", img = "https://link.fr/image.png"},
{Label = "Sac d'EMS", Model = "xm_props_x17_bag_med_01a", icon = "briefcase-medical", img = "https://link.fr/image.png"}
},
},
{
name = "Props de Ballas", -- Nom de la catégorie
job = nil, -- job qui vois cette catégorie
job2 = "ballas", -- job2 qui vois cette catégorie
icon = "gun",
img = "https://wiki.21jumpclick.fr/images/1/1f/Ballas_logo.png",
Props = {
{Label = "Paquet de Weed", Model = "sf_prop_sf_weed_bigbag_01a", icon = "cannabis", img = "https://link.fr/image.png"},
{Label = "Palette de Weed", Model = "hei_prop_heist_weed_pallet", icon = "cannabis", img = "https://link.fr/image.png"},
{Label = "Pochon de Weed", Model = "reh_prop_reh_bag_weed_01a", icon = "cannabis", img = "https://link.fr/image.png"},
},
},
}
Pour rajouter une catégorie, veuillez suivre ceci :
{
name = "Nouvelle catégorie", -- Nom de la catégorie
job = "job", -- job qui vois cette catégorie
job2 = "job2", -- job2 qui vois cette catégorie
icon = "icon-on-font-awesome",
img = "https://link.of.img/img.png", -- false si vous ne voulez pas d'image !
Props = {
-- ajoutez vos props comme la suivante :
{Label = "Paquet de Weed", Model = "sf_prop_sf_weed_bigbag_01a", icon = "cannabis", img = "https://link.fr/image.png"},
},
},
Ajoutez votre nouvelle catégorie a la ligne #74 du sh_config.lua comme ceci :
Config.PropsLists = {
-- LISTE DES PROPS FIVEM : https://forge.plebmasters.de/objects
{
name = "Props ouverte a tous", -- Nom de la catégorie dans le premier menu !
job = nil, -- nil = tout le monde
job2 = nil, -- nil = tout le monde
icon = "users",
img = "https://www.iconpacks.net/icons/1/free-users-icon-267-thumb.png",
Props = {
{Label = "Fauteil Roulant", Model = "prop_wheelchair_01", icon = "box-open", img = false},
{Label = "Chaise Camping", Model = "prop_skid_chair_01", icon = "box-open", img = false},
{Label = "Chaise de rue", Model = "v_ilev_chair02_ped", icon = "box-open", img = false},
{Label = "Canapé de rue", Model = "prop_rub_couch04", icon = "box-open", img = false},
{Label = "Lampe Led", Model = "prop_worklight_03a", icon = "box-open", img = false},
{Label = "Lampe Photo", Model = "prop_studio_light_03", icon = "box-open", img = false},
{Label = "Carton Drogue Blue", Model = "prop_mp_drug_pack_blue", icon = "box-open", img = false},
{Label = "Tabouret", Model = "prop_bar_stool_01", icon = "box-open", img = false},
{Label = "Caisse D'armes", Model = "prop_lev_crate_01", icon = "box-open", img = false},
{Label = "Chariot Lingot", Model = "prop_large_gold_alt_a", icon = "box-open", img = false},
{Label = "Transat", Model = "p_patio_lounger1_s", icon = "box-open", img = false},
{Label = "Chaise en Bois", Model = "prop_rock_chair_01", icon = "box-open", img = false},
{Label = "Sac Poubelle", Model = "prop_ld_rub_binbag_01", icon = "box-open", img = false},
},
},
{
name = "Props d'EMS", -- Nom de la catégorie
job = "ambulance", -- job qui vois cette catégorie
job2 = nil, -- job2 qui vois cette catégorie
icon = "user-md",
img = "https://cdn-icons-png.flaticon.com/512/917/917172.png",
Props = {
{Label = "Fauteil Roulant", Model = "prop_wheelchair_01", icon = "wheelchair", img = "https://link.fr/image.png"},
{Label = "Lit médical", Model = "v_med_bed2", icon = "procedures", img = "https://link.fr/image.png"},
{Label = "Boite médical", Model = "xm_prop_smug_crate_s_medical", icon = "briefcase-medical", img = "https://link.fr/image.png"},
{Label = "Sac d'EMS", Model = "xm_props_x17_bag_med_01a", icon = "briefcase-medical", img = "https://link.fr/image.png"}
},
},
{
name = "Props de Ballas", -- Nom de la catégorie
job = nil, -- job qui vois cette catégorie
job2 = "ballas", -- job2 qui vois cette catégorie
icon = "gun",
img = "https://wiki.21jumpclick.fr/images/1/1f/Ballas_logo.png",
Props = {
{Label = "Paquet de Weed", Model = "sf_prop_sf_weed_bigbag_01a", icon = "cannabis", img = "https://link.fr/image.png"},
{Label = "Palette de Weed", Model = "hei_prop_heist_weed_pallet", icon = "cannabis", img = "https://link.fr/image.png"},
{Label = "Pochon de Weed", Model = "reh_prop_reh_bag_weed_01a", icon = "cannabis", img = "https://link.fr/image.png"},
},
},
-- nouvelle catégorie :
{
name = "Nouvelle catégorie", -- Nom de la catégorie
job = "job", -- job qui vois cette catégorie
job2 = "job2", -- job2 qui vois cette catégorie
icon = "icon-on-font-awesome",
img = "https://link.of.img/img.png", -- false si vous ne voulez pas d'image !
Props = {
-- ajoutez vos props comme la suivante :
{Label = "Paquet de Weed", Model = "sf_prop_sf_weed_bigbag_01a", icon = "cannabis", img = "https://link.fr/image.png"},
},
},
-- fin de la nouvelle catégorie !
}
Dernière mise à jour