Files
qb-core-qbcore-fivem/client
MrNewb b5ea0f7387 Add timeouts and validation to asset loaders
Enhance several asset-loading helpers in client/functions.lua to avoid indefinite blocking and provide explicit status. LoadModel, RequestAnimDict, LoadAnimSet, and LoadParticleDictionary now accept an optional timeout (default 5000ms), return a boolean load result and the resolved name/hash, and perform existence/validity checks before requesting. LoadModel also accepts string model names (converted via joaat) and logs a warning if the model doesn't exist. These changes make asset loading safer and easier to debug when assets fail to load.

Adds timeout as optional param, stops infinite loops on model/animset/anim dict/particle requests
No breaking changes and backwards compatable
2026-05-10 14:29:33 -04:00
..
2023-11-03 09:40:35 -05:00
2026-04-20 19:18:48 -05:00