Skip to content

How do I add custom weapons and entities to my DarkRP server?

Custom weapons are Scripted Weapons (SWEPs) and custom purchasable objects are Scripted Entities (SENTs).

For weapons: search the Workshop for a weapon pack (searching "darkrp weapons" or "swep pack" is a good start), add it to your collection via Addon Manager or Workshop, then add a shipment referencing the weapon in shipments.lua. To find a weapon's class name for that shipment, run print(LocalPlayer():GetActiveWeapon():GetClass()) in the console while holding it.

For a custom entity in the F4 menu (a money printer is the classic example), use DarkRP.createEntity() in lua/darkrp_config/entities.lua, giving it a price, a max-per-player limit, the entity class, and an allowed job list.

One hard limit worth knowing: the Source engine caps a map at 4096 entities total. If your server is getting close, the Health Monitor page's Addon Scan tab has an Entity Limits section that shows current usage.

Was this helpful?

Want to try this on a real server?

Everything described here is available on the trial too, on the same hardware and the same panel as the paid plans. Try it free for 24-hour, no credit card required.

Didn't fix it? Ask in Discord.

Ask in our Discord - we help with hosting questions whether or not you host with us.