diff --git a/client.lua b/client.lua index bea8e12..c9a032e 100644 --- a/client.lua +++ b/client.lua @@ -31,14 +31,6 @@ local function reqParticle(dict) end end -for k, v in pairs(Config.Fireworks) do - if v.command then - RegisterCommand(v.command, function(source, args, rawCommand) - TriggerEvent('vms_firework:startFirework', k) - end) - end -end - local hasBox = nil RegisterNetEvent('vms_firework:startFirework', function(type) if Config.DisableMultiplyFireworks then @@ -108,4 +100,4 @@ end) RegisterNetEvent('vms_firework:notification', function(message, time, type) Config.Notification(Config.Translate[message], time, type) -end) \ No newline at end of file +end) diff --git a/server.lua b/server.lua index 0022d10..a973dbd 100644 --- a/server.lua +++ b/server.lua @@ -34,4 +34,12 @@ elseif Config.Core == "QB-Core" then end) end end -end \ No newline at end of file +end + +for k, v in pairs(Config.Fireworks) do + if v.command then + RegisterCommand(v.command, function(source, args, rawCommand) + TriggerClientEvent('vms_firework:startFirework', source, k) + end, true) + end +end