Hello I'm using someones script that blocks People from picking up Vehicle but i want it to use ULX Ranks can someone help me Change it??
function limitVicPickup(ply, ent)
if(ent:IsVehicle()) then -- Checks if the entity being picked up is a vehicle
if not (ply:IsSuperAdmin()) then -- if the player picking the entity up isn't superadmin
return false -- Don't let the player pick it up
end
end
end
hook.Add("PhysgunPickup", "limitVehiclePickup", limitVicPickup) -- Registers the hook so the function gets called