DarkRP:Shipments:fr

Un shipment (on peut également dire équipement) ressemble à ceci :

DarkRP.createShipment("AK47", {               -- Nom du shipment    model = "models/weapons/w_rif_ak47.mdl",    -- Le model dans lequel le shipment spawn (devraient être un world model...)    entity = "weapon_ak472",                    -- Le nom de classe de l'arme. On utilise généralement la forme weapon_quelquechose.    price = 2450,                               -- Le prix d'un shipment    amount = 10,                                -- Combien d'armes il y'a t-il dans un shipment    separate = false,                           -- L'objet(arme) du shipment est vendu séparément    pricesep = nil,                             -- OPTIONNEL: Le prix d'une arme si c'est vendu séparément    noship = false,                             -- OPTIONNEL: True/false, cette arme est vendu dans un shipment    allowed = {TEAM_GUN},                       -- OPTIONNEL: Lise des jobs qui peuvent acheter un shipment category = "Rifles",                       -- OPTIONNEL: La catégorie du shipment sera celle là, dans le menu F4 })

Exemple: Pistolet HL2:

DarkRP.createShipment("HL2pistol", {  model = "models/weapons/W_pistol.mdl",    entity = "weapon_pistol",    price = 500,    amount = 10,    separate = false,    pricesep = 200,    noship = false,    allowed = {TEAM_GUN} })

La disposition:
Shipment("HL2pistol") = Le nom affiché dans le menuF4.

"models/weapons/W_pistol.mdl" = Le model de l'arme (JAMAIS UTILISER LES MODELS V_ OU C_).

"weapon_pistol" = L'entité qui sort, pour les armes utilisez le nom du dossier dans /lua/weapons, vous pouvez utilisez les armes de vos addons sans devoir les mettre dans le DarkRP. Pour les entités, utilisez le nom du dossier dans /lua/entities, pareillement vous pouvez utilisez les entités de vos addons sans devoir les mettre dans le DarkRP.

500 = Le prix du shipment entier, peut être changé dans le jeu.

10 = Décide combien d'objets sont stockés dans le shipment (pour acheter des packs d'armes).

false = N'est pas vendu séparément. Si vous mettez cela à true, les joueurs vont acheter juste l'arme et non le pack (par exemple), mettez le à false et il sera uniquement disponible en shipment (pack).

200 = Prix lorsqu'il est vendu séparément, vous avez juste besoin de mettre ça si l'option au dessus est sur "true", car c'est le prix d'une unité de cette entité.

false = /buy uniquement, si vous mettez cela à true vous pouvez uniquement acheter, mettez cela à true et vous serez en mesure d'acheter uniquement par unité, pas en pack.

{TEAM_GUN} = Les teams qui peuvent acheter le shipment, utilisez le TEAM_. Vous pouvez ajouter plus de 1 team en les séparant avec des virgules, exemple: {TEAM_GUN, TEAM_CHIEF}.

Voici quelques exemples de shipment
ATTENTION: Vous avez besoin de Counter-Strike Source Realistic Weapons 4 , Vous pouvez l'obtenir ici. -- CS:S Weapons DarkRP.createShipment("M249", {  model = "models/weapons/w_mach_m249para.mdl",   entity = "weapon_real_cs_m249",   price = 6000,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} }) DarkRP.createShipment("Galil", {  model = "models/weapons/w_rif_galil.mdl",   entity = "weapon_real_cs_galil",   price = 4000,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} }) DarkRP.createShipment("AK47", {  model = "models/weapons/w_rif_ak47.mdl",   entity = "weapon_real_cs_ak47",   price = 4000,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} }) DarkRP.createShipment("M4A1", {  model = "models/weapons/w_rif_m4a1.mdl",   entity = "weapon_real_cs_m4a1",   price = 3900,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} }) DarkRP.createShipment("Famas", {  model = "models/weapons/w_rif_famas.mdl",   entity = "weapon_real_cs_famas",   price = 3900,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} }) DarkRP.createShipment("AWP", {  model = "models/weapons/w_snip_awp.mdl",   entity = "weapon_real_cs_awp",   price = 5000,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} }) DarkRP.createShipment("Scout", {  model = "models/weapons/w_snip_scout.mdl",   entity = "weapon_real_cs_scout",   price = 4500,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} }) DarkRP.createShipment("SteyrAug", {  model = "models/weapons/w_rif_aug.mdl",   entity = "weapon_real_cs_aug",   price = 4000,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} }) DarkRP.createShipment("SG552", {  model = "models/weapons/w_rif_sg552.mdl",   entity = "weapon_real_cs_sg552",   price = 4000,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} }) DarkRP.createShipment("G3SG1", {  model = "models/weapons/w_snip_g3sg1.mdl",   entity = "weapon_real_cs_g3sg1",   price = 4000,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} }) DarkRP.createShipment("SG550", {  model = "models/weapons/w_snip_sg550.mdl",   entity = "weapon_real_cs_sg550",   price = 4000,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} }) DarkRP.createShipment("UMP45", {  model = "models/weapons/w_smg_ump45.mdl",   entity = "weapon_real_cs_ump_45",   price = 3600,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} }) DarkRP.createShipment("P90", {  model = "models/weapons/w_smg_p90.mdl",   entity = "weapon_real_cs_p90",   price = 3500,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} }) DarkRP.createShipment("TMP", {  model = "models/weapons/w_smg_tmp.mdl",   entity = "weapon_real_cs_tmp",   price = 3500,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} }) DarkRP.createShipment("MP5", {  model = "models/weapons/w_smg_mp5.mdl",   entity = "weapon_real_cs_mp5a5",   price = 3200,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} }) DarkRP.createShipment("Mac10", {  model = "models/weapons/w_smg_mac10.mdl",   entity = "weapon_real_cs_mac10",   price = 3000,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} }) DarkRP.createShipment("AutoShotgun", {  model = "models/weapons/w_shot_xm1014.mdl",   entity = "weapon_real_cs_xm1014",   price = 3000,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} }) DarkRP.createShipment("Shotgun", {  model = "models/weapons/w_shot_m3super90.mdl",   entity = "weapon_real_cs_pumpshotgun",   price = 2500,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} }) DarkRP.createShipment("Grenade", {  model = "models/weapons/w_eq_fraggrenade.mdl",   entity = "weapon_real_cs_grenade",   price = 15000,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} }) DarkRP.createShipment("Flash", {  model = "models/weapons/w_eq_flashbang_thrown.mdl",   entity = "weapon_real_cs_flash",   price = 2000,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} }) DarkRP.createShipment("Smoke", {  model = "models/weapons/w_eq_smokegrenade.mdl",   entity = "weapon_real_cs_smoke",   price = 2000,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} }) DarkRP.createShipment("DualElites", {  model = "models/weapons/w_pist_elite_dropped.mdl",   entity = "weapon_real_cs_elites",   price = 2300,   amount = 10,   separate = true,   pricesep = 250,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} }) DarkRP.createShipment("Deagle", {  model = "models/weapons/w_pist_deagle.mdl",   entity = "weapon_real_cs_desert_eagle",   price = 2300,   amount = 10,   separate = true,   pricesep = 250,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} }) DarkRP.createShipment("USP", {  model = "models/weapons/w_pist_usp.mdl",   entity = "weapon_real_cs_usp",   price = 2200,   amount = 10,   separate = true,   pricesep = 240,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} }) DarkRP.createShipment("P228", {  model = "models/weapons/w_pist_p228.mdl",   entity = "weapon_real_cs_p228",   price = 2100,   amount = 10,   separate = true,   pricesep = 220,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} }) DarkRP.createShipment("Glock", {  model = "models/weapons/w_pist_glock18.mdl",   entity = "weapon_real_cs_glock18",   price = 2000,   amount = 10,   separate = true,   pricesep = 210,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} }) DarkRP.createShipment("FiveSeven", {  model = "models/weapons/w_pist_fiveseven.mdl",   entity = "weapon_real_cs_five-seven",   price = 1900,   amount = 10,   separate = true,   pricesep = 200,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} }) DarkRP.createShipment("Knife", {  model = "models/weapons/w_knife_t.mdl",   entity = "weapon_real_cs_knife",   price = 2000,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} })

Il y'a une team Admin qui peut acheter également les shipments, donc les vendeurs d'armes et les admins peuvent les acheter.

Voici le code pour un job Admin si vous voulez l'utilisez, lisez le guide pour ajouter des jobs personnalisés si vous n'êtes pas sûr de comment s'en servir.

TEAM_ADMIN = DarkRP.createJob("Admin Police", {  color = Color(255, 255, 255, 255),    model = "models/player/Combine_Super_Soldier.mdl",    description = Les policiers admins sont utilisés uniquement par les admins, ils font la plupart des choses de base.,    weapons = {"stunstick", "arrest_stick", "unarrest_stick"},    command = "adminpolice",    max = 3,    salary = 50,    admin = 1,    vote = false,    hasLicense = true,    NeedToChangeFrom = TEAM_POLICE })