Skip to content

Commit

Permalink
fix(server): don't send empty array to removeEntity event
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Jul 9, 2023
1 parent 9419fa7 commit c713f2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ CreateThread(function()
end
end

if num then
if num > 0 then
TriggerClientEvent('ox_target:removeEntity', -1, arr)
table.wipe(arr)

Expand Down

0 comments on commit c713f2d

Please sign in to comment.