Vector3::max

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

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