Add vehicle properties system and update attributions

Introduces a comprehensive vehicle properties handler in lib/vehicles/client.lua, inspired by ESX, QB-Core, and ox_lib frameworks. Updates Attributions.md to document the new vehicle system, clarify licensing, and improve formatting. Registers Vehicles in lib/init.lua for client use.
This commit is contained in:
MrNewb committed 2025-09-10 11:07:58 -04:00
1 parent 66df77cc3f
commit f472232273
3 files changed
+581 -46

No files matched your search

+70 -46
View File
@@ -1,98 +1,122 @@
# Attributions
> **Community Bridge** This project incorporates code from several outstanding libraries and resources, all licensed under GPLv3. We're grateful to the talented developers who made their work available to the community.
> **Community Bridge** incorporates code from several outstanding libraries and resources, all licensed under GPLv3. We’re grateful to the talented developers who made their work available to the community.
---
## Libraries & Resources
### r\_bridge
**Purpose:** Code for codem-inventory bridging, and initial targeting
**Repository:** [r\_bridge](https://github.com/rumaier/r_bridge)
<details>
<summary>Implementation Details</summary>
<summary><strong>r_bridge</strong></summary>
**Purpose:** Code for codem-inventory bridging, and initial targeting
**Repository:** [r_bridge](https://github.com/rumaier/r_bridge)
**Code we use:**
* Inventory bridging code for codem-inventory integration
* Targeting system foundation
- Inventory bridging code for codem-inventory integration
- Targeting system foundation
**Modifications made:**
* Adapted inventory bridge for codem compatibility in alternative structure
- Adapted inventory bridge for codem compatibility in alternative structure
</details>
---
### ox\_lib
**Purpose:** External compatibility and architectural inspiration
**Repository:** [ox\_lib](https://github.com/overextended/ox_lib)
<details>
<summary>Implementation Details</summary>
<summary><strong>ox_lib</strong></summary>
**Purpose:** Architectural inspiration
**Repository:** [ox_lib](https://github.com/overextended/ox_lib)
**Compatibility features:**
* External resource integration for raycasting utilities
* Shared conventions
- External resource integration for raycasting utilities
- Shared conventions
**Implementation approach:**
* No direct code usage - maintains compatibility as external resource
* Follows ox\_lib conventions for seamless integration
* Provides bridge compatibility for servers using ox\_lib ecosystem
- No direct code usage — maintains compatibility as external resource
- Follows ox_lib conventions for seamless integration
- Provides bridge compatibility for servers using ox_lib ecosystem
</details>
---
### renewed\_lib
**Purpose:** Object placer functionality
**Repository:** [renewed\_lib](https://github.com/Renewed-Scripts/Renewed-Lib)
<details>
<summary>Implementation Details</summary>
<summary><strong>renewed_lib</strong></summary>
**Purpose:** Object placer functionality
**Repository:** [renewed_lib](https://github.com/Renewed-Scripts/Renewed-Lib)
**Code we use:**
* Object placement system
- Object placement system
**Modifications made:**
* Updated variable naming for consistency
* Added missing parameters for native functions
* Updated deprecated ox\_lib raycast camera export
* Enhanced showtext UI to work with multiple systems
* Moved placement text to locales for internationalization
* Replaced ox\_lib model request exports with our bridge functions
- Updated variable naming for consistency
- Added missing parameters for native functions
- Updated deprecated ox_lib raycast camera export
- Enhanced showtext UI to work with multiple systems
- Moved placement text to locales for internationalization
- Replaced ox_lib model request exports with our bridge functions
</details>
---
### duff
<details>
<summary><strong>duff</strong></summary>
**Purpose:** Version checker system and update notifications
**Purpose:** Version checker system and update notifications
**Repository:** [duff](https://github.com/DonHulieo/duff/blob/d89ed3b0051194babf5711114a0c437d4e41f433/server/init.lua#L10C1-L28C4)
<details>
<summary>Implementation Details</summary>
**Code we use:**
* Version checker formatting patterns
* Repository information handling
- Version checker formatting patterns
- Repository information handling
**Modifications made:**
* Removed unnecessary variables
* Enhanced to pull repository information from passed strings
* Adapted print formatting for our use case
- Removed unnecessary variables
- Enhanced to pull repository information from passed strings
- Adapted print formatting for our use case
</details>
---
<details>
<summary><strong>Vehicle Properties System</strong></summary>
**Purpose:** Set and manage vehicle properties in the game world, inspired by multiple community frameworks.
**Repositories referenced:**
- [ESX-Framework (ESX.Game.SetVehicleProperties)](https://github.com/esx-framework/es_extended)
- [QB-Core (qb-core)](https://github.com/qbcore-framework/qb-core)
- [ox_lib](https://github.com/overextended/ox_lib) (architectural inspiration and modifications)
**Code origin and inspiration:**
- Primarily draws on concepts and structures from ESX and QB-Core, with ox_lib serving as architectural inspiration.
- ESX and QB-Core implementations use similar approaches for setting vehicle mods, colors, damages, and extras.
- ox_lib adapts and extends these approaches within its framework, showing overlapping code patterns.
**Modifications made:**
- Combined and refactored logic to suit Community Bridge project needs.
- Adapted license to GPLv3 for compatibility and open-source compliance.
- Added explicit handling of custom colors, mod toggles, and damage states.
**Licensing notes:**
- Original ESX and QB-Core frameworks are GPLv3 licensed.
- ox_lib is LGPL licensed, used here as architectural inspiration only.
- This project’s vehicle properties code inherits GPLv3 licensing consistent with ESX/QB-Core, honoring their licensing terms and attributions.
</details>
@@ -100,7 +124,7 @@
## Special Thanks
A heartfelt thank you to all the creators and maintainers of these libraries, bridges, and resources. Your dedication to open-source development and the FiveM community makes projects like Community Bridge possible.
A heartfelt thank you to all creators and maintainers of these libraries, bridges, and resources. Your dedication to open-source development and the FiveM community makes projects like Community Bridge possible.
Your willingness to share knowledge and code under GPLv3 licensing enables the entire community to build better, more compatible systems together.
@@ -114,4 +138,4 @@ For detailed license information, see the [LICENSE](LICENSE) file in the project
---
> *"If I have seen further it is by standing on the shoulders of Giants."* - Isaac Newton
> *"If I have seen further it is by standing on the shoulders of Giants."* – Isaac Newton