getEnabled
Definition
-- @/lua/ge/extensions/core/trailerRespawn.lua:227
M.getEnabled = function() return enabled end
Callers
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veJBeamPicker.lua
-- Increment plot offset
if be:getEnabled() then
plotOffset = (plotOffset + 1) % plotLen
@/lua/ge/extensions/editor/sensorConfigurationEditor.lua
if be:getEnabled() and #previewConfigs[stype.tIMU].openPreviews > 0 then
plotOffset = plotOffset + 1 >= plotLen and 0 or plotOffset + 1
@/lua/ge/extensions/gameplay/parking.lua
local function onUpdate(dt, dtSim)
if not active or not sites or not be:getEnabled() or freeroam_bigMapMode.bigMapActive() then return end
@/lua/ge/extensions/scenario/scenarios.lua
-- scenario time
if be:getEnabled() then
local raceTickTime = 0.25
if readyVehicles == #vehicles then
if not be:getEnabled() then
be:toggleEnabled()
@/lua/ge/extensions/gameplay/police.lua
local function onUpdate(dt, dtSim)
if not M.enabled or not be:getEnabled() then return end
if gameplay_traffic.getState() ~= 'on' or not next(policeVehs) then
@/lua/ge/extensions/ui/liveryEditor/tools/settings.lua
uiTools.doOperation(function(layer)
local apiEnabled = api.getEnabled()
if not apiEnabled then
api.setLayer(layer, true)
if apiEnabled ~= api.getEnabled() then
api.setEnabled(apiEnabled)
@/lua/ge/extensions/editor/dynamicDecals/settings.lua
local function sectionGui(guiId)
if im.Checkbox("Enable", editor.getTempBool_BoolBool(api.getEnabled())) then
api.toggleEnabled()
@/lua/ge/extensions/editor/api/dynamicDecals.lua
M.getEnabled = function()
return decalProjection:getEnabled()
end
M.toggleEnabled = function()
decalProjection:setEnabled(not decalProjection:getEnabled())
if decalProjection:getEnabled() == false then
decalProjection:setEnabled(not decalProjection:getEnabled())
if decalProjection:getEnabled() == false then
decalProjection:flushDynamicTextures()
@/lua/ge/extensions/gameplay/traffic.lua
if be:getEnabled() and not freeroam_bigMapMode.bigMapActive() then
doTraffic(dtReal, dtSim)
@/lua/ge/extensions/core/hotlapping.lua
if not be:getEnabled() then
if pausedStart == 0 then
if started and be:getEnabled() then
if raceData then
@/lua/ge/extensions/ui/policeInfo.lua
local function onGuiUpdate(dt)
if not be:getEnabled() or not M.enabled then return end
@/lua/ge/extensions/editor/trafficSignalsEditor.lua
end
if not be:getEnabled() then
im.SameLine()
@/lua/ge/extensions/flowgraph/modules/vehicleModule.lua
self._storedWalkBlacklist = gameplay_walk.getBlacklist()
self._storedTrailerRespawnEnabled = core_trailerRespawn and core_trailerRespawn.getEnabled()
end
@/lua/ge/extensions/editor/trafficManager.lua
data.isDrivable = false
if be:getEnabled() then
if data._tempData.frameDelay then
@/lua/ge/simTimeAuthority.lua
else
return not be:getEnabled()
end