Skip to content

Commit

Permalink
chore: suppress diagnostic warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Dec 20, 2023
1 parent 14d5e02 commit 5bb5779
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1626,6 +1626,7 @@ RegisterNUICallback('giveItem', function(data, cb)
if isGiveTargetValid(option.ped, option.coords) then
local playerName = GetPlayerName(option.id)
option.id = GetPlayerServerId(option.id)
---@diagnostic disable-next-line: inject-field
option.label = ('[%s] %s'):format(option.id, playerName)
n += 1
giveList[n] = option
Expand Down
2 changes: 2 additions & 0 deletions modules/bridge/nd/client.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
if not lib.checkDependency('ND_Core', '2.0.0', true) then return end

NDCore = {}

lib.load('@ND_Core.init')

RegisterNetEvent("ND:characterUnloaded", client.onLogout)
Expand Down
3 changes: 3 additions & 0 deletions modules/bridge/nd/server.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
if not lib.checkDependency('ND_Core', '2.0.0', true) then return end

local Inventory = require 'modules.inventory.server'
NDCore = {}

lib.load('@ND_Core.init')

AddEventHandler("ND:characterUnloaded", server.playerDropped)
Expand Down Expand Up @@ -98,6 +100,7 @@ end

---@param entityId number
---@return number | string
---@diagnostic disable-next-line: duplicate-set-field
function server.getOwnedVehicleId(entityId)
return NDCore.getVehicle(entityId)?.id
end
Expand Down

0 comments on commit 5bb5779

Please sign in to comment.