Skip to content

Commit

Permalink
Merge pull request #3 from Randolio/patch-1
Browse files Browse the repository at this point in the history
fix(server): Lost source because of timeout?
  • Loading branch information
ThatMadCap authored Mar 13, 2024
2 parents dab3afd + 37105d2 commit 40ebcc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ AddEventHandler('onResourceStart', function(resource)
end)

RegisterNetEvent('QBCore:Server:OnPlayerLoaded', function()
local src = source
SetTimeout(2000, function()
TriggerClientEvent('az_trailer:cacheConfig', source, Server)
TriggerClientEvent('az_trailer:cacheConfig', src, Server)
end)
end)

Expand Down

0 comments on commit 40ebcc3

Please sign in to comment.