Skip to content

FiveM types that are different in TypeScript

Some types or functions work a bit differently in TypeScript.

Vectors

There is no such thing as VectorX (X being 2, 3 or 4) i.e. vector3(1, 2, 3) instead we make the array ourself like [1, 2, 3]. Same for 2 and 4 but with 2 or 4 numbers respectively.