2.0.0
Changelog devhub_lib
[v2.0.0] - 2025-02-19
Folder structure updated
core/- Contains essential functions to avoid code duplication and allow advanced developers to modify functionalities.html/- Stores UI-related files, includingcolors.cssfor easy server-wide color customization.modules/- Modular functionalities like frameworks, key systems, target systems, and fuel systems. (Customization for non-standard server setups should be done here.)
Added
- Sound playback moved to lib, allowing integration with custom systems or using pre-configured
xsound. - Model request validation: If a model does not exist, a warning will be printed in F8.
- Auto-detection of vehicle key system.
- Auto-detection of vehicle fuel system.
AddCoordsToTargetfunction added intarget/c.custom.lua.- UI customization options:
- Change placement of UI and notification types without modifying core code.
Improved
- Player name logging: In logs, in-game names are now replaced with Steam names.
- Validation for QBCore
GetFullNameimproved. - ESX updates:
esx:onPlayerLogoutadded to ESX client.
- No need to edit core code for key and fuel system connections, everything is configurable in config.lua.
- Documentation for
devhub_libimproved.
Modified:
+ folders structureTutorial how to update lib v1 to v2
https://docs.devhub.gg/scripts/devhub_lib-needed-for-each-script/migration-from-v1-to-v2