tochnonementposted
onyx.creditstore.CanPlayerUseOption
Example:
hook.Add('onyx.creditstore.CanPlayerUseOption', 'SuitsJobRestricted', function(ply, optionID, it, itemTable, itemTypeData)
if (itemTable.id == 'suit212' and ply:Team() ~= TEAM_LEGION212_RCT) then
onyx.Notify(ply, 'You cannot activate it!', 1, 5)
return false
end
end)