-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathentities.lua
43 lines (39 loc) · 1.22 KB
/
entities.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
--[[---------------------------------------------------------
Name: Settings
-----------------------------------------------------------]]
local GroupDonator = { "superadmin", "admin", "moderator", "doantor" }
--[[---------------------------------------------------------
Name: Printers
-----------------------------------------------------------]]
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
table.HasValue(GroupDonator, ply:GetNWString("usergroup"))
end,
customCheckFailMsg = "This entity is restricted to donator and higher!",
})