Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.

Commit 696b38d

Browse files
committed
fix(server/qbx): invalid statebag access
1 parent 9f816e4 commit 696b38d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ We do not guarantee compatibility or support for third-party resources.
2323
- [esx](https://github.com/esx-framework/esx_core)
2424
- [qbox](https://github.com/Qbox-project/qbx_core)
2525
- [nd_core](https://github.com/ND-Framework/ND_Core)
26-
- [qb-core](https://github.com/qbcore-framework/qb-core) (LIMITED SUPPORT! Use qbox instead)
2726

2827
## ✨ Features
2928

modules/bridge/qbx/server.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,5 +101,5 @@ end
101101
---@return number | string
102102
---@diagnostic disable-next-line: duplicate-set-field
103103
function server.getOwnedVehicleId(entityId)
104-
return Entity(entityId).vehicleid or exports.qbx_vehicles:GetVehicleIdByPlate(GetVehicleNumberPlateText(entityId)) or GetVehicleNumberPlateText(entityId)
104+
return Entity(entityId).state.vehicleid or exports.qbx_vehicles:GetVehicleIdByPlate(GetVehicleNumberPlateText(entityId)) or GetVehicleNumberPlateText(entityId)
105105
end

0 commit comments

Comments
 (0)