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