Vector3::max: Difference between revisions
(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 | 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
- Functions
- Properties
- Vector3::x
- Vector3::y
- Vector3::z