- Initiateur de la discussion
DOMISY
Bambi
- Messages
- 86
- Score réaction
- 7
- Points
- 35
Bonjour,
Je voudrais savoir dans ce code ou mettre le nom du Job Restriction (En l'occurence TEAM_GUNDEALER) :
if money < price then
return false, "Not Enough Money"
elseif itm.allowed and !table.HasValue(itm.allowed, ply:Team()) then
return false, "Job Restriction"
elseif itm.customCheck and !itm.customCheck(ply, itm) then
local reason = ""
if itm.CustomCheckFailMsg then
if type(itm.CustomCheckFailMsg) == "function" then
reason = itm.CustomCheckFailMsg(ply, itm)
else
reason = tostring(itm.CustomCheckFailMsg)
end
end
Merci d'avance !
Je voudrais savoir dans ce code ou mettre le nom du Job Restriction (En l'occurence TEAM_GUNDEALER) :
if money < price then
return false, "Not Enough Money"
elseif itm.allowed and !table.HasValue(itm.allowed, ply:Team()) then
return false, "Job Restriction"
elseif itm.customCheck and !itm.customCheck(ply, itm) then
local reason = ""
if itm.CustomCheckFailMsg then
if type(itm.CustomCheckFailMsg) == "function" then
reason = itm.CustomCheckFailMsg(ply, itm)
else
reason = tostring(itm.CustomCheckFailMsg)
end
end
Merci d'avance !