Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[---------------------------------------------------------------------------
- DarkRP custom entities
- ---------------------------------------------------------------------------
- This file contains your custom entities.
- This file should also contain entities from DarkRP that you edited.
- Note: If you want to edit a default DarkRP entity, first disable it in darkrp_config/disabled_defaults.lua
- Once you've done that, copy and paste the entity to this file and edit it.
- The default entities can be found here:
- https://github.com/FPtje/DarkRP/blob/master/gamemode/config/addentities.lua#L111
- For examples and explanation please visit this wiki page:
- http://wiki.darkrp.com/index.php/DarkRP:CustomEntityFields
- Add entities under the following line:
- ---------------------------------------------------------------------------]]
- DarkRP.createEntity( "Amber Printer", {
- ent = "fg_amber_printer",
- model = "models/props_c17/consolebox01a.mdl",
- price = 5000,
- max = 4,
- cmd = "buyamberprinter"
- } )
- DarkRP.createEntity( "Sapphire Printer", {
- ent = "fg_sapphire_printer",
- model = "models/props_c17/consolebox01a.mdl",
- price = 10000,
- max = 4,
- cmd = "buysapphireprinter"
- } )
- DarkRP.createEntity( "Ruby Printer", {
- ent = "fg_ruby_printer",
- model = "models/props_c17/consolebox01a.mdl",
- price = 25000,
- max = 4,
- cmd = "buyrubyprinter"
- } )
- DarkRP.createEntity( "Emerald Printer", {
- ent = "fg_emerald_printer",
- model = "models/props_c17/consolebox01a.mdl",
- price = 50000,
- max = 4,
- cmd = "buyemeraldprinter",
- customCheck = function(ply) return CLIENT or table.HasValue({"vip", "Premium", "superadmin", "operator VIP", "operator Premium", "moderator VIP", "moderator Premium", "admin VIP", "admin Premium"},
- ply:GetUserGroup()) end,
- CustomCheckFailMsg = "You don't have the required rank to complete this action!"
- } )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement