Skip to content

Commit

Permalink
fix(moduke/utils): avoid redundant return value
Browse files Browse the repository at this point in the history
  • Loading branch information
mafewtm committed Sep 7, 2024
1 parent 59d0366 commit 8e20373
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,14 @@ if isServer then
model = type(model) == 'string' and joaat(model) or (model --[[@as integer]])
local ped = GetPlayerPed(source)

---@diagnostic disable-next-line: redundant-return-value
return qbx.spawnVehicle({
local netId, _ = qbx.spawnVehicle({
model = model,
spawnSource = coords or ped,
warp = warp and ped or nil,
props = props,
})

return netId
end


Expand Down

0 comments on commit 8e20373

Please sign in to comment.