HAS_VEHICLE_ASSET_LOADED
Hash
0xB935F3154BC913C8Runtime name
HasVehicleAssetLoadedNamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x1BBE0523B8DB9A21Signature
BOOL HAS_VEHICLE_ASSET_LOADED(Hash vehicleAsset);Parameters
| Name | Type | Description |
|---|---|---|
vehicleAsset | Hash | — |
Returns BOOL
Usage
local retval = HasVehicleAssetLoaded(vehicleAsset)
-- always works, by hash
local retval = Citizen.InvokeNative(0xB935F3154BC913C8, vehicleAsset, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = HasVehicleAssetLoaded(vehicleAsset);
// by hash
const retval = Citizen.invokeNative('0xB935F3154BC913C8', vehicleAsset, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0xB935F3154BC913C8, vehicleAsset);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.