IS_DRAFT_VEHICLE
Hash
0xEA44E97849E9F3DDRuntime name
IsDraftVehicleNamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
Signature
BOOL IS_DRAFT_VEHICLE(Vehicle vehicle);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | — |
Returns BOOL
Usage
local retval = IsDraftVehicle(vehicle)
-- always works, by hash
local retval = Citizen.InvokeNative(0xEA44E97849E9F3DD, vehicle, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsDraftVehicle(vehicle);
// by hash
const retval = Citizen.invokeNative('0xEA44E97849E9F3DD', vehicle, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0xEA44E97849E9F3DD, vehicle);See also
_CREATE_DRAFT_VEHICLEIdentical to CREATE_VEHICLE but allows to set draftAnimalPopGroup (see popgroups.#mt for DRAFT_HORSES_*)
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.