1
0
Fork 0
forked from Simnation/Main
This commit is contained in:
Nordi98 2025-08-11 23:31:05 +02:00
parent ae1730aae7
commit aa78a2febb
5 changed files with 20 additions and 22 deletions

View file

@ -297,13 +297,13 @@ RegisterNetEvent("jobs_creator:injectJobs", function(jobs)
-- This will run when jobs are injected by jobs_creator
print("ps-multijob: Jobs have been updated by jobs_creator")
-- Optional: You could notify online players that jobs have been updated
-- This would allow them to refresh their job menu to see any new jobs
-- Notify online players that jobs have been updated
local Players = QBCore.Functions.GetPlayers()
for i = 1, #Players do
local Player = QBCore.Functions.GetPlayer(Players[i])
if Player then
TriggerClientEvent('QBCore:Notify', Players[i], "Job system has been updated", "success")
TriggerClientEvent('ps-multijob:refreshJobs', Players[i]) -- Trigger refresh event
end
end
end)