Vector3::max: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "This function returns the max partial of a Vector3. ==Syntax== <pre> vector.max(); </pre> == Returns == * {{RageType|number}} The maximum. ==Example== {{ServersideCode| <...")
 
No edit summary
 
Line 1: Line 1:
This function returns the max partial of a Vector3.
This function returns the maximum partial of a Vector3.


==Syntax==
==Syntax==

Latest revision as of 06:38, 31 May 2019

This function returns the maximum 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