GE Lua Documentation

Press F to search!

removeProp

Definition


-- @/lua/ge/extensions/gameplay/police.lua:123

local function removeProp(propId) -- removes a prop from the props list
  local idx = arrayFindValueIndex(policePropIds, propId or 0)
  if idx then
    table.remove(policePropIds, idx)
  end
end

Callers

@/lua/ge/extensions/gameplay/police.lua
                      if not getObjectByID(policePropIds[i]) then
                        removeProp(policePropIds[i])
                      end