DarkRP Shipments refuse to appear >:(

Resolved

Hate to bump. :L

you should case your code in lua tags…

[ lua ]
<insert codes<
[ /lua ]

without the spaces :wink:

So you mean like put [ lua] (And I put the shipments here?) [/ lua]

no on the forum here, is your darkrp svn?

oh lol and yes

your addentites.lua file should look like this
you didn’t add a space at the end of keypad and stunstick

[lua]AddCustomShipment(“Desert eagle”, “models/weapons/w_pist_deagle.mdl”, “weapon_deagle2”, 215, 10, true, 215, true, {TEAM_GUN})
AddCustomShipment(“Fiveseven”, “models/weapons/w_pist_fiveseven.mdl”, “weapon_fiveseven2”, 0, 10, true, 205, true, {TEAM_GUN})
AddCustomShipment(“Glock”, “models/weapons/w_pist_glock18.mdl”, “weapon_glock2”, 0, 10, true, 160, true, {TEAM_GUN})
AddCustomShipment(“P228”, “models/weapons/w_pist_p228.mdl”, “weapon_p2282”, 0, 10, true, 185, true, {TEAM_GUN})

AddCustomShipment(“AK47”, “models/weapons/w_rif_ak47.mdl”, “weapon_ak472”, 2450, 10, false, nil, false, {TEAM_GUN})
AddCustomShipment(“MP5”, “models/weapons/w_smg_mp5.mdl”, “weapon_mp52”, 2200, 10, false, nil, false, {TEAM_GUN})
AddCustomShipment(“M4”, “models/weapons/w_rif_m4a1.mdl”, “weapon_m42”, 2450, 10, false, nil, false, {TEAM_GUN})
AddCustomShipment(“Mac 10”, “models/weapons/w_smg_mac10.mdl”, “weapon_mac102”, 2150, 10, false, nil, false, {TEAM_GUN})
AddCustomShipment(“Pump shotgun”, “models/weapons/w_shot_m3super90.mdl”, “weapon_pumpshotgun2”, 1750, 10, false, nil, false, {TEAM_GUN})
AddCustomShipment(“Sniper rifle”, “models/weapons/w_snip_g3sg1.mdl”, “ls_sniper”, 3750, 10, false, nil, false, {TEAM_GUN})

AddCustomShipment(“KeypadCracker”, “models/weapons/w_c4.mdl”, “keypad_cracker”, 6000, 10, true, 600, true, {TEAM_BLACK})
AddCustomShipment(“StunStick”, “models/weapon/w_stunbaton.mdl”, “stunstick”, 2000, 10, true, 200, true, {TEAM_BLACK})
AddCustomShipment(“Alcohol”, “models/drug_mod/alcohol_can.mdl”, “durgz_alcohol”, 1000, 10, true, 100, true, {TEAM_DRUG})
AddCustomShipment(“Cigarette”, “models/boxopencigshib.mdl”, “durgz_cigarette”, 1000, 10, true, 100, true, {TEAM_DRUG})
AddCustomShipment(“Cocaine”, “models/cocn.mdl”, “durgz_cocaine”, 6000, 10, true, 700, true, {TEAM_DRUG})
AddCustomShipment(“Heroine”, “models/katharsmodels/syringe_out/syringe_out.mdl”, “durgz_heroine”, 450, 10, true, 50, true, {TEAM_DRUG})
AddCustomShipment(“Lsd”, “models/drug_mod/alcohol_can.mdl”, “durgz_lsd”, 3000, 10, true, 300, true, {TEAM_DRUG})
AddCustomShipment(“Mushroom”, “models/ipha/mushroom_small.mdl”, “durgz_mushroom”, 2800, 10, true, 200, true, {TEAM_DRUG})
AddCustomShipment(“Water”, “models/drug_mod/the_bottle_of_water.mdl”, “durgz_water”, 1500, 10, true, 150, true, {TEAM_DRUG})
AddCustomShipment(“Weed”, “models/katharsmodels/contraband/zak_wiet/zak_wiet.mdl”, “durgz_weed”, 1000, 10, true, 100, false, {TEAM_DRUG})

AddEntity(“Drug lab”, “drug_lab”, “models/props_lab/crematorcase.mdl”, 400, 3, “/buydruglab”, {TEAM_GANG, TEAM_MOB})
AddEntity(“Money printer”, “money_printer”, “models/props_c17/consolebox01a.mdl”, 1000, 2, “/buymoneyprinter”)
AddEntity(“Microwave”, “microwave”, “models/props/cs_office/microwave.mdl”, 400, 1, “/buymicrowave”, TEAM_COOK)
AddEntity(“Gun lab”, “gunlab”, “models/props_c17/TrapPropeller_Engine.mdl”, 500, 1, “/buygunlab”, TEAM_GUN)

/*
How to add custom vehicles:
FIRST
go ingame, type rp_getvehicles for available vehicles!
then:
AddCustomVehicle(<One of the vehicles from the rp_getvehicles list>, <Model of the vehicle>, <Price of the vehicle>, <OPTIONAL jobs that can buy the vehicle>)
Examples:
AddCustomVehicle(“Jeep”, “models/buggy.mdl”, 100 )
AddCustomVehicle(“Airboat”, “models/airboat.mdl”, 600, {TEAM_GUN})
AddCustomVehicle(“Airboat”, “models/airboat.mdl”, 600, {TEAM_GUN, TEAM_MEDIC})

Add those lines under your custom shipments. At the bottom of this file or in data/CustomShipments.txt

HOW TO ADD CUSTOM SHIPMENTS:
AddCustomShipment("<Name of the shipment(no spaces)>"," <the model that the shipment spawns(should be the world model…)>", “<the classname of the weapon>”, <the price of one shipment>, <how many guns there are in one shipment>, <OPTIONAL: true/false sold seperately>, <OPTIONAL: price when sold seperately>, < true/false OPTIONAL: /buy only = true> , OPTIONAL which classes can buy the shipment, OPTIONAL: the model of the shipment)

Notes:
MODEL: you can go to Q and then props tab at the top left then search for w_ and you can find all world models of the weapons!
CLASSNAME OF THE WEAPON
there are half-life 2 weapons you can add:
weapon_pistol
weapon_smg1
weapon_ar2
weapon_rpg
weapon_crowbar
weapon_physgun
weapon_357
weapon_crossbow
weapon_slam
weapon_bugbait
weapon_frag
weapon_physcannon
weapon_shotgun
gmod_tool

But you can also add the classnames of Lua weapons by going into the weapons/ folder and look at the name of the folder of the weapon you want.
Like the player possessor swep in addons/Player Possessor/lua/weapons You see a folder called weapon_posessor
This means the classname is weapon_posessor

YOU CAN ADD ITEMS/ENTITIES TOO! but to actually make the entity you have to press E on the thing that the shipment spawned, BUT THAT’S OK!
YOU CAN MAKE GUNDEALERS ABLE TO SELL MEDKITS!
*/[/lua]

[editline]16th January 2012[/editline]

it should work now

Thank you so much!!!

Advice: Don’t edit your start post, people may need the information so it can help them. Just do another reply resolved.