GET_ALL_VEHICLES
Returns all vehicle handles known to the server.
Signature
object GET_ALL_VEHICLES();Returns object — An object containing a list of vehicle handles.
Description
Returns all vehicle handles known to the server. The data returned adheres to the following layout:
[127, 42, 13, 37]Usage
local retval = GetAllVehicles()
-- always works, by hash
local retval = Citizen.InvokeNative(0x332169f5, Citizen.ResultAsObject2(msgpack.unpack))JavaScript and C#
const retval = GetAllVehicles();
// by hash
const retval = Citizen.invokeNative('0x332169f5', Citizen.returnResultAnyway(), Citizen.resultAsObject2());Function.Call((Hash)0x332169f5);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.