🖥️Ez-DrugSystem
Configuration :
Ce script est très simple a installer sur votre serveur FiveM, que vous soyez en localhost, sur un VPS ou bien sur une machine dédiée FiveM !
Configurez d'abord le système de notifications !
(support pour notifications : "okok" okokNotify & okokTextUI / "overextended" ox_lib Notify & TextUI / "esx" esx_notify & esx_textui) - Ligne #9 :
NotifySystem = "esx",
Maintenant, configurez la totalité des positions de récolte ainsi que du traitement : - Ligne #22 à #56 :
RecoltePos??? = vector3(0.0, 0.0, 0.0),
TraitementPos??? = vector3(0.0, 0.0, 0.0),
Vous êtes en capacité de changer la durée de récolte ou la durée du traitement : - Ligne #65 à #100 :
RecolteTime??? = vector3(0.0, 0.0, 0.0),
TraitementTime??? = vector3(0.0, 0.0, 0.0),
Configurez la quantité d'items données :
(après-récolte/avant-traitement/après-traitement) - Ligne #105 à #109 :
QuantityRecolte = 5,
QuantityTraitement = 5,
QuantityToRecup = 5,
Configurez le nom des ressources que vous utilisez :
(support pour inventaire : ESX - qb-inventory - ox_inventory) (support pour inventaire : qb-target - ox_target) - Ligne #125 & #126 :
Config.inventoryResource = 'ox_inventory'
Config.targetResource = 'ox_target'
Configurez la fonction d'appel a la police : - Ligne #129 :
Config.policeCallClientFunction = function ()
exports["ps-dispatch"]:CustomAlert({
coords = vector3(0.0, 0.0, 0.0),
message = "Vente de drogues",
dispatchCode = "10-200 Narcotiques ou drogues impliquées",
description = " VENTE DE DROGUES ",
radius = 0,
sprite = 64,
color = 2,
scale = 1.0,
length = 3,
})
end
Configurez les peds auxquels la vente sera impossible : - Ligne #144 :
Config.forbiddenModels = {
-- Human peds
`mp_m_freemode_01`,
`mp_f_freemode_01`,
`csb_cop`,
`ig_trafficwarden`,
`s_f_y_cop_01`,
`s_m_m_snowcop_01`,
`s_m_y_cop_01`,
`s_m_y_hwaycop_01`,
`mp_m_shopkeep_01`,
`mp_m_fibsec_01`,
`mp_s_m_armoured_01`,
`mp_m_securoguard_01`,
`s_m_y_swat_01`,
`s_m_y_sheriff_01`,
`s_m_m_paramedic_01`,
`s_m_m_paramedic_01`,
-- Animal peds
`a_c_boar`,
`a_c_cat_01`,
`a_c_chickenhawk`,
`a_c_chimp`,
`a_c_chop`,
`a_c_cormorant`,
`a_c_cow`,
`a_c_coyote`,
`a_c_crow`,
`a_c_deer`,
`a_c_dolphin`,
`a_c_fish`,
`a_c_hen`,
`a_c_humpback`,
`a_c_husky`,
`a_c_killerwhale`,
`a_c_mtlion`,
`a_c_pig`,
`a_c_pigeon`,
`a_c_poodle`,
`a_c_pug`,
`a_c_rabbit_01`,
`a_c_rat`,
`a_c_retriever`,
`a_c_rhesus`,
`a_c_rottweiler`,
`a_c_seagull`,
`a_c_sharkhammer`,
`a_c_sharktiger`,
`a_c_shepherd`,
`a_c_stingray`,
`a_c_westy`,
}
Dernière mise à jour