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
- Add entities under the following line:
- ---------------------------------------------------------------------------*/
- // CUSTOM PRINTERS
- DarkRP.createEntity("Bronze Money Printer", {
- ent = "bronze_printer",
- model = "models/props_c17/consolebox01a.mdl",
- price = 4000,
- max = 1,
- cmd = "buymoneyprinter1",
- })
- DarkRP.createEntity("Silver Money Printer", {
- ent = "silver_printer",
- model = "models/props_c17/consolebox01a.mdl",
- price = 6000,
- max = 1,
- cmd = "buymoneyprinter2",
- })
- DarkRP.createEntity("Gold Money Printer", {
- ent = "gold_printer",
- model = "models/props_c17/consolebox01a.mdl",
- price = 10000,
- max = 1,
- cmd = "buymoneyprinter3",
- })
- DarkRP.createEntity("Diamond Money Printer", {
- ent = "diamond_printer",
- model = "models/props_c17/consolebox01a.mdl",
- price = 20000,
- max = 1,
- cmd = "buymoneyprinter4",
- customCheck = function(ply) return CLIENT or ply:GetUserGroup("vip") == "vip" or ply:GetUserGroup("superadmin") == "superadmin" or ply:GetUserGroup("vipmod") == "vipmod" or ply:GetUserGroup("vipadmin") == "vipadmin" end,
- CustomCheckFailMsg = "You must be VIP to buy this printer",
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement