FiveM Docs / Native Reference
API Set:
  • all
  • server
  • client
Language:
  • raw
  • lua
  • c#
  • js
Namespace: STREAMINGAPI set: clientGame: gta5editImprove

HAS_MODEL_LOADED

0x98A4EB5D89A0C952
0x62BFDB37
// HasModelLoaded
BOOL HAS_MODEL_LOADED(Hash model);
Parameters:
  • model:

    The model hash to check for.

Returns:

A boolean indicating whether the archetype is loaded (true) or not (false).

Returns whether the specified model (archetype) is currently loaded.

Note that this will return 'true' even if the model has been requested and loaded by something other than the current script, if you're intending to actually use the model in a later frame, you should call REQUEST_MODEL anyway.

ALLOW_PLAYER_SWITCH_OUTRO()
ALLOW_PLAYER_SWITCH_PAN()
BEGIN_SRL()
CLEAR_FOCUS()
CLEAR_HD_AREA()
DISABLE_SWITCH_OUTRO_FX()
DOES_ANIM_DICT_EXIST(char* animDict)
ENABLE_SWITCH_PAUSE_BEFORE_DESCENT()
END_SRL()
_GET_GLOBAL_WATER_TYPE()
GET_IDEAL_PLAYER_SWITCH_TYPE(float x1, float y1, float z1, float x2, float y2, float z2)
GET_LODSCALE()
GET_NUMBER_OF_STREAMING_REQUESTS()
GET_PLAYER_SHORT_SWITCH_STATE()
GET_PLAYER_SWITCH_INTERP_OUT_CURRENT_TIME()
GET_PLAYER_SWITCH_INTERP_OUT_DURATION()
GET_PLAYER_SWITCH_JUMP_CUT_INDEX()
GET_PLAYER_SWITCH_STATE()
GET_PLAYER_SWITCH_TYPE()
_GET_USED_CREATOR_MODEL_MEMORY_PERCENTAGE()
HAS_ANIM_DICT_LOADED(char* animDict)
HAS_ANIM_SET_LOADED(char* animSet)
HAS_CLIP_SET_LOADED(char* clipSet)
HAS_COLLISION_FOR_MODEL_LOADED(Hash model)
HAS_MODEL_LOADED(Hash model)
HAS_NAMED_PTFX_ASSET_LOADED(char* fxName)
HAS_PTFX_ASSET_LOADED()
INIT_CREATOR_BUDGET()
IS_ENTITY_FOCUS(Entity entity)
IS_IPL_ACTIVE(char* iplName)
_IS_MODEL_A_PED(Hash model)
IS_MODEL_A_VEHICLE(Hash model)
IS_MODEL_IN_CDIMAGE(Hash model)
IS_MODEL_VALID(Hash model)
IS_NETWORK_LOADING_SCENE()