lopolit
Пользователь
- Регистрация
- 26 Сен 2021
- Сообщения
- 8
- Реакции
- 0
- Баллы
- 4
- Клан-тег
- Xuipleti
- Пол
- Мужской
- Семейное положение
- Не выбрано
- Род занятий
- pinaet xui
Скачал аддон Derma Printers вместо обычных принтеров.
По примеру с даркрп вики, добавил энтити, но его не появилось.
Добавил категорию, снова ничего.
По примеру с даркрп вики, добавил энтити, но его не появилось.
Добавил категорию, снова ничего.
DarkRP.createEntity("Денежный принтер", {
ent = "derma_printer",
model = "models/props_c17/consolebox01a.mdl",
price = 20000,
max = 2,
cmd = "buydermaprinter",
-- The following fields are OPTIONAL. If you do not need them, or do not need to change them from their defaults, REMOVE them.
allowed = {TEAM_GUN, TEAM_BMD},
customCheck = function(ply) return ply:GetUserGroup() == "donator" end,
CustomCheckFailMsg = function(ply, entTable) return "You need to be a donator to buy this entity!" end,
getPrice = function(ply, price) return ply:GetUserGroup() == "donator" and price * 0.9 or price end,
getMax = function(ply) return ply:GetUserGroup() == "donator" and 10 or 2 end,
spawn = function(ply, tr, tblEnt) return ents.Create("prop_physics") end, -- function to override spawning mechanics. MUST return an entity!
category = "Other", -- The name of the category it is in. Note: the category must be created!
sortOrder = 100, -- The position of this thing in its category. Lower number means higher up.
allowTools = false, -- Whether players (including superadmins!) are allowed to use other tools than just remover. Defaults to false
})
ent = "derma_printer",
model = "models/props_c17/consolebox01a.mdl",
price = 20000,
max = 2,
cmd = "buydermaprinter",
-- The following fields are OPTIONAL. If you do not need them, or do not need to change them from their defaults, REMOVE them.
allowed = {TEAM_GUN, TEAM_BMD},
customCheck = function(ply) return ply:GetUserGroup() == "donator" end,
CustomCheckFailMsg = function(ply, entTable) return "You need to be a donator to buy this entity!" end,
getPrice = function(ply, price) return ply:GetUserGroup() == "donator" and price * 0.9 or price end,
getMax = function(ply) return ply:GetUserGroup() == "donator" and 10 or 2 end,
spawn = function(ply, tr, tblEnt) return ents.Create("prop_physics") end, -- function to override spawning mechanics. MUST return an entity!
category = "Other", -- The name of the category it is in. Note: the category must be created!
sortOrder = 100, -- The position of this thing in its category. Lower number means higher up.
allowTools = false, -- Whether players (including superadmins!) are allowed to use other tools than just remover. Defaults to false
})
DarkRP.createCategory{
name = "Other",
categorises = "entities",
startExpanded = true,
color = Color(0, 107, 0, 255),
canSee = fp{fn.Id, true},
sortOrder = 100,
}
name = "Other",
categorises = "entities",
startExpanded = true,
color = Color(0, 107, 0, 255),
canSee = fp{fn.Id, true},
sortOrder = 100,
}