Back to TPG

TPG.Util.Clamp

S🏷️ Util

Part of TPG namespace

TPG.Util.Clamp(val, min, max)
View on GitHub|gamemode/core/sh_utils.lua:157-159
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

Clamp a number to a range.

Parameters

NameTypeDescription
valnumber
minnumber
maxnumber

Returns

TypeDescription
numberval, held between min and max.

Examples

No examples available.

Used In

No usages found in the codebase.