VE Lua Documentation

Press F to search!

removeSchedule

Definition


-- @/lua/vehicle/extensions/gameplayStatistic.lua:38

local function removeSchedule(fn)
  for i in ipairs(statSchedule) do
    if statSchedule[i] == fn then
      table.remove(statSchedule, i)
      lenstatSchedule = #statSchedule
      if lenstatSchedule == 0 then
        M.updateGFX = nil
        extensions.hookUpdate("updateGFX")
      end
      return true
    end
  end
  return false
end

Callers

@/lua/ge/extensions/gameplay/statistic.lua

local function removeSchedule(fn)
  for i in ipairs(statSchedule) do