Skip to content

Commit

Permalink
fix(server/qbx): default NPC vehicle database id to nil (#1774)
Browse files Browse the repository at this point in the history
  • Loading branch information
Manason authored Aug 30, 2024
1 parent 8278a1d commit 3978cac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/bridge/qbx/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,5 @@ end
---@return number | string
---@diagnostic disable-next-line: duplicate-set-field
function server.getOwnedVehicleId(entityId)
return Entity(entityId).state.vehicleid or exports.qbx_vehicles:GetVehicleIdByPlate(GetVehicleNumberPlateText(entityId)) or GetVehicleNumberPlateText(entityId)
return Entity(entityId).state.vehicleid or exports.qbx_vehicles:GetVehicleIdByPlate(GetVehicleNumberPlateText(entityId))
end

0 comments on commit 3978cac

Please sign in to comment.