Replace/Disable default progress bar
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
Triggered when using progress bar
RegisterNetEvent("vehicles_keys:internalProgressBar", function(time, text)
end)
time
int
Progress bar duration in seconds
text
string
Description text
-- In vehicles_keys/integrations/cl_integrations.lua
RegisterNetEvent("vehicles_keys:framework:ready", function()
-- Disables the default script progress bar (otherwise there would be 2 progress bars)
exports["vehicles_keys"]:disableScriptEvent("vehicles_keys:internalProgressBar")
end)
-- Example to replace the script progress bar with an external one
RegisterNetEvent("vehicles_keys:internalProgressBar", function(time, text)
-- The event to activate your external progress bar
TriggerEvent("external_progressbar:start", time, text)
end)
You can place it in the file integrations/cl_integrations.lua
of the script, at the bottom of the file on new lines