Skip to content

2.0.0

Choose a tag to compare

@Wiktor01 Wiktor01 released this 19 Feb 17:54
· 15 commits to main since this release

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, including colors.css for 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.
  • AddCoordsToTarget function added in target/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 GetFullName improved.
  • ESX updates:
    • esx:onPlayerLogout added to ESX client.
  • No need to edit core code for key and fuel system connections, everything is configurable in config.lua.
  • Documentation for devhub_lib improved.

Modified:

+ folders structure

Tutorial how to update lib v1 to v2

https://docs.devhub.gg/scripts/devhub_lib-needed-for-each-script/migration-from-v1-to-v2