Originally Posted by Taudier
you can 'WrapScript' the 'OnShow' & 'OnHide' vehicule ui. more reliable than [vehicleui].
Code:
for i=1, 6 do
local button = _G["OverrideActionBarButton"..i]
handler:WrapScript(button, "OnShow", your function)
handler:WrapScript(button, "OnHide", your function)
end
or just the first button
|
What about vehicles without a button?