


Print (v1 = v2) - prints `true` print (v1 = v3) - prints `false` print (v1 ~= v3) - prints `true` - Arithmetic operations between vectors are supported: local v = vector3( 1, 2, 3 ) Print ( type (v)) - prints `vector3` - Vectors support equality operators: local v1 = vector3( 1, 2, 3 ) Vectors are a real data type: local v = vector3( 1, 2, 3 ) z: A floating point number representing the z value of your vector.īasic vector3 functionality: - Basic vector with zero length: vector3( 0, 0, 0 ).y: A floating point number representing the y value of your vector.x: A floating point number representing the x value of your vector.Syntax vector3 vector3(float x, float y, float z)
#FIVEM COORDS MANUAL#
In the Lua runtime manual and native functions manual. See the second example below for a real world use of vector3, or read more about them For example, GetEntit圜oords returns a vector3, whereas SetEntit圜oords accepts one, instead of using Many existing natives such as GetEntit圜oords and SetEntit圜oords already have first class support for vector3

More about this in the Lua runtime manual. This means that type(vector3(1, 2, 3)) will return vector3. In FiveM's Lua runtime, vectors are real data types, just like numbers, bools and strings are.
