Angelo Rodrigues De Morais Barroso c8db003cbc Add lockState support to vehicle properties (#83)
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>
2026-01-19 23:46:37 +01:00
2025-12-21 17:18:40 +00:00
2022-11-24 17:02:03 +11:00
2025-12-21 17:18:40 +00:00
2022-07-05 05:17:52 +10:00
2025-03-29 22:02:36 +11:00

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

https://coxdocs.dev/ox_lib

💾 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
No description provided
Readme 5.7 MiB
Languages
Lua 62.5%
TypeScript 35.6%
CSS 1.7%