mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-16 22:46:03 +01:00
c8db003cbce45862cb503cfae429c7d7dba5f0b3
Hello, I’d like to propose a small improvement to vehicle properties handling. This change adds support for the vehicle door lock state (lockState) by: - Including lockState in the VehicleProperties type - Reading the value using GetVehicleDoorLockStatus in getVehicleProperties - Applying the value using SetVehicleDoorsLocked in setVehicleProperties This allows vehicle lock status to be properly saved and restored alongside other vehicle properties. Let me know if this fits the project direction or if any adjustments are needed. This allows the vehicle lock status to be properly saved and restored alongside other vehicle properties. Note: Two additional commits and pull requests were accidentally opened during this process and have already been closed. Sorry for the noise. Thank you! Signed-off-by: Angelo Rodrigues De Morais Barroso <115129101+Angelo90810@users.noreply.github.com>
ox_lib
A FiveM library and resource implementing reusable modules, methods, and UI elements.
For guidelines to contributing to the project, and to see our Contributor License Agreement, see CONTRIBUTING.md
For additional legal notices, refer to NOTICE.md.
📚 Documentation
💾 Download
https://github.com/communityox/ox_lib/releases/latest/download/ox_lib.zip
📦 npm package
https://www.npmjs.com/package/@communityox/ox_lib
🖥️ Lua Language Server
- Install Lua Language Server to ease development with annotations, type checking, diagnostics, and more.
- Install CfxLua IntelliSense to add natives and cfxlua runtime declarations to LLS.
- You can load ox_lib into your global development environment by modifying workspace/user settings "Lua.workspace.library" with the resource path.
- e.g. "c:/fxserver/resources/ox_lib"
Description
Languages
Lua
62.5%
TypeScript
35.6%
CSS
1.7%