Skip to content

Commit

Permalink
fix(server/commands): use DeleteEntity
Browse files Browse the repository at this point in the history
Goddamn it
  • Loading branch information
BerkieBb committed Jan 22, 2024
1 parent 26280b1 commit 6a86b96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ lib.addCommand('car', {
local keepCurrentVehicle = args[locale("command.car.params.keepCurrentVehicle.name")]
local currentVehicle = not keepCurrentVehicle and GetVehiclePedIsIn(ped, false)
if currentVehicle and currentVehicle ~= 0 then
DeleteVehicle(currentVehicle)
DeleteEntity(currentVehicle)
end

local netId = qbx.spawnVehicle({
Expand Down

0 comments on commit 6a86b96

Please sign in to comment.