a library to speed up the development of Fivem scripts and frameworks
fivem-ts - Documentation v0.7.5 • Docs
fivem-ts - Documentation v0.7.5 / Shared / normalize
normalize(
value
,min
,max
):number
Normalizes a value within a given range to a value between 0 and 1.
• value: number
The value to normalize.
• min: number
The minimum value of the range.
• max: number
The maximum value of the range.
number
The normalized value.
normalize(75, 50, 100); // 0.5