Vector3::max

From RAGE Multiplayer Wiki
Revision as of 06:37, 31 May 2019 by Micaww (talk | contribs) (Created page with "This function returns the max partial of a Vector3. ==Syntax== <pre> vector.max(); </pre> == Returns == * {{RageType|number}} The maximum. ==Example== {{ServersideCode| <...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This function returns the max partial of a Vector3.

Syntax

vector.max();

Returns

  • number The maximum.

Example

Server-Side
const vec1 = new mp.Vector3(10, 30, 100);

const maximum = vec1.max(); // maximum = 100

See Also