fivem-ts

a library to speed up the development of Fivem scripts and frameworks


Project maintained by Purpose-Dev Hosted on GitHub Pages — Theme by mattgraham

fivem-ts - Documentation v0.7.5Docs


fivem-ts - Documentation v0.7.5 / Shared / isInRange

Function: isInRange()

isInRange(value, min, max): boolean

Checks if a value is within a specified range.

Parameters

value: number

The value to check.

min: number

The minimum value of the range.

max: number

The maximum value of the range.

Returns

boolean

true if the value is within the range, false otherwise.

Example

isInRange(5, 1, 10); // true
isInRange(0, 1, 10); // false

Defined in

shared/utils/FMath.ts:193