GE Lua Documentation

Press F to search!

setConfigPaints

Definition


-- @/lua/ge/extensions/core/vehicle/partmgmt.lua:670

local function setConfigPaints (data, respawn)
  mergeConfig({paints = data}, respawn)
end

Callers

@/lua/ge/extensions/core/vehicle/colors.lua
    -- Save paint to config
    extensions.core_vehicle_partmgmt.setConfigPaints(allPaints, false)
  end
  -- Save paint to config
  extensions.core_vehicle_partmgmt.setConfigPaints(vd.config.paints, false)
end
@/lua/ge/extensions/editor/veMain.lua
        local paint = createVehiclePaint({x=color[1], y=color[2], z=color[3], w=color[4]}, {color[5], color[6], color[7], color[8]})
        core_vehicle_partmgmt.setConfigPaints(paint, false)
      end