Create your addons
Create a vehicle
Add a driveable vehicle with custom handling, model, seats, and damage.
A vehicle is a driveable entity with its own model, physics, seats, and handling parameters. On Emrald / DarkRP, vehicles are typically purchased through a dealership NPC or spawned by admins.
Coming soon. This recipe will walk through:
- Anatomy of a vehicle prefab (model, wheels, seats, collision)
- Importing a vehicle model into s&box
- Configuring wheel colliders and suspension
- Setting up the driver and passenger seats (cameras, exit points)
- Handling parameters — top speed, acceleration, brake, steering response
- Damage model — health, destructible parts, explosion behavior
- Wiring the vehicle into the dealership NPC inventory
- Pricing and ownership (per-player vehicle persistence)
- Custom horn, lights, siren (optional)
- Testing the vehicle in the s&box editor
- Publishing the addon and verifying purchase + drive in-game
A reference implementation is DarkRP's built-in vehicles — darkrp/Code/Modules/Vehicles/ has examples covering cars, motorbikes, and emergency vehicles.
Next steps
- Create a job — restrict who can drive your vehicle
- Create a weapon — vehicle-mounted weapons are weapons too