Skip to content

Commit f9adc19

Browse files
committed
#1806 More no keybinding checks
1 parent adf9453 commit f9adc19

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

GSE_QoL/QoL.lua

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -718,23 +718,26 @@ if GSE.GameMode >= 11 then
718718
if GSE.isEmpty(GSEOptions.SkyRidingBinds) then
719719
GSEOptions.SkyRidingBinds = {}
720720
end
721+
local tablevals = false
721722
for k, v in pairs(GSEOptions.SkyRidingBinds) do
722723
table.insert(tableval, k .. "\001" .. v)
723-
end
724-
725-
local executionString =
726-
"VehicleKeybindTable = newtable([=======[" ..
727-
string.join("]=======],[=======[", unpack(tableval)) ..
728-
"]=======])" ..
729-
[[
724+
tablevals = true
725+
end
726+
if tablevals then
727+
local executionString =
728+
"VehicleKeybindTable = newtable([=======[" ..
729+
string.join("]=======],[=======[", unpack(tableval)) ..
730+
"]=======])" ..
731+
[[
730732
VehicleKeybind = newtable()
731733
for _,v in ipairs(VehicleKeybindTable) do
732734
local x, y = strsplit("\001",v)
733735
VehicleKeybind[tonumber(x)] = y
734736
end
735737
736738
]]
737-
VehicleBar:Execute(executionString) -- Key: Button index / Value: Keybind
739+
VehicleBar:Execute(executionString) -- Key: Button index / Value: Keybind
740+
end
738741
end
739742

740743
GSE.UpdateVehicleBar()

0 commit comments

Comments
 (0)