Garry's Mod Wiki

DSlider:SetLockY

  DSlider:SetLockY( number lockY = nil )

Description

Sets the lock on the Y axis.

For example the value 0.5 will lock the draggable panel to half the height of the slider's panel.

Arguments

1 number lockY = nil
Set to nil to reset lock.

The value range is from 0 to 1.