Toggle Auto-reconnect
#29
call:
changeReconnect(true) or changeReconnect(false)
changeReconnect(true) or changeReconnect(false)
--[[
Script made by Lee (Discord: l33_) - www.trainorcreations.com
If you want to support my work, feel free to donate at https://trainorcreations.com/donate
PS. Stop ripping off my work and selling it as your own.
]]--
function changeReconnect(enable)
local rwPanel = g_ui.getRootWidget():getChildById('charactersWindow')
local buttonsPanel = rwPanel:getChildById('autoReconnect')
if rwPanel and buttonsPanel then
if buttonsPanel:isOn() ~= enable then
buttonsPanel:onClick()
end
warn('auto reconnect '..(buttonsPanel:isOn() and 'on' or 'off'))
end
end
26 May 2021