Skip to content

Commit

Permalink
fix(server/qbx): invalid statebag access
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Aug 17, 2024
1 parent 9f816e4 commit 696b38d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ We do not guarantee compatibility or support for third-party resources.
- [esx](https://github.com/esx-framework/esx_core)
- [qbox](https://github.com/Qbox-project/qbx_core)
- [nd_core](https://github.com/ND-Framework/ND_Core)
- [qb-core](https://github.com/qbcore-framework/qb-core) (LIMITED SUPPORT! Use qbox instead)

## ✨ Features

Expand Down
2 changes: 1 addition & 1 deletion modules/bridge/qbx/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,5 @@ end
---@return number | string
---@diagnostic disable-next-line: duplicate-set-field
function server.getOwnedVehicleId(entityId)
return Entity(entityId).vehicleid or exports.qbx_vehicles:GetVehicleIdByPlate(GetVehicleNumberPlateText(entityId)) or GetVehicleNumberPlateText(entityId)
return Entity(entityId).state.vehicleid or exports.qbx_vehicles:GetVehicleIdByPlate(GetVehicleNumberPlateText(entityId)) or GetVehicleNumberPlateText(entityId)
end

0 comments on commit 696b38d

Please sign in to comment.