restrict rope models

so yeah what im looking for is a lua script to restrict players changing their rope models with console, so they only can use the ones provided in the menu

Rope models? But ropes don’t have models, do they? They have textures though, do you mean the textures?

yea



hook.Add( "CanTool", "roperestrictions", function( ply, tr, tool )
	if tool == "rope" and !table.HasValue( list.Get( "RopeMaterials" ), ply:GetActiveWeapon():GetClientInfo( "material" ) ) then ply:ChatPrint( "You have autism" ) return false end
end)


not tested, may or may not spaz uncontrollably

General HeX/MFSiNC made a file that clamps the tool values.