Skip to content

Commit

Permalink
Remove prints
Browse files Browse the repository at this point in the history
  • Loading branch information
Flohhhhh committed Mar 7, 2023
1 parent 81c5d13 commit ce8ad19
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions real-brake-lights/server.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local vehicles = {}

RegisterNetEvent("rbl:AddVehicle", function(vehicle)
print("Adding vehicle: " .. json.encode(vehicle))
--print("Adding vehicle: " .. json.encode(vehicle))
local isAlready = false
for _, v in pairs(vehicles) do
if v.net == vehicle.net then
Expand All @@ -16,7 +16,7 @@ end)
RegisterNetEvent('rbl:RemoveVehicle', function(vehicle)
for k, v in pairs(vehicles) do
if v.net == vehicle.net then
print("Removing vehicle: " .. json.encode(v))
--print("Removing vehicle: " .. json.encode(v))
table.remove(vehicles, k)
end
end
Expand All @@ -32,10 +32,10 @@ end)
CreateThread(function()
while true do Wait(5000)
for k, v in pairs(vehicles) do
if not DoesEntityExist(v.entity) then
print("Removing: " .. json.encode(v))
table.remove(vehicles, k)
end
if not DoesEntityExist(v.entity) then
--print("Removing: " .. json.encode(v))
table.remove(vehicles, k)
end
end
end
end)

0 comments on commit ce8ad19

Please sign in to comment.