Résolu Custom Check not Works

  • Initiateur de la discussion
Paladus

Paladus

Geek suprême
Messages
45
Score réaction
1
Points
105
Hey guys, I need your help

If I have a job in this case the arms dealer
This can also buy the guns but also every other player even if he is not in this job and I wonder why

I hope you can help me

This is my Code

local shipment_amt = 3

DarkRP.createShipment("Messer", {
model = "models/weapons/w_extreme_ratio.mdl",
entity = "m9k_knife",
price = 5000,
amount = 3,
seperate = true,
pricesep = 5000,
noship = false,
allowed = {TEAM_GUN},
category = "Nahkampf"
})

and

TEAM_GUN = DarkRP.createJob("Waffenhändler", {
color = Color(255, 140, 0, 255),
model = "models/player/monk.mdl",
description = [[Der Waffenhändler verkauft Waffen von groß bis klein an die Stadt.]],
weapons = {},
command = "waffenhändler",
max = 2,
salary = 200,
admin = 0,
vote = false,
hasLicense = false,
category = "Verkäufer",
sortOrder = 4,
customCheck = function(ply)
return MRP_DonatorGroups[ply:GetUserGroup()] or ply:IsAdmin() or ply.GetUTimeTotalTime and ply:GetUTimeTotalTime() >= 1800
end,
CustomCheckFailMsg = function(ply)
return "Du benötigst mindestens eine halbe Stunde Spielzeit, um diesen Job ausüben zu können!"
end
})

Why can a Citizen buy the Weapons
 
Discord d'entraide
Rejoignz-nous sur Discord