DarkRP:CustomShipmentFields

From Official DarkRP Wiki
Revision as of 20:10, 6 July 2013 by FPtje (talk | contribs) (Created page with "This page is incomplete. Please help me fill it in = Custom shipment fields = You can create custom shipment in DarkRP. However, there are many things to fiddle with. This pag...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This page is incomplete. Please help me fill it in

Custom shipment fields

You can create custom shipment in DarkRP. However, there are many things to fiddle with. This page explains every single "field".

Example with all fields

Field explanations

More advanced fields

These fields are all implemented by using a function. If you're thinking of editing DarkRP files (especially gamemode_functions.lua!) first look at these functions. Always try to avoid having to edit DarkRP files.

onBought

Called when the player spawns this shipment Arguments: Player ply, Shipment table (holds all these fields), Entity spawned (the entity that the player spawned