mirror of
https://github.com/Michatec/wk_wars2x.git
synced 2026-04-01 00:16:27 +02:00
Fixed UI settings not reloading on resource restart
This commit is contained in:
@@ -144,10 +144,12 @@ end )
|
||||
-- default settings applied
|
||||
AddEventHandler( "onResourceStart", function( resourceName )
|
||||
if ( GetCurrentResourceName() == resourceName ) then
|
||||
Citizen.Wait( 2000 )
|
||||
Citizen.CreateThread( function()
|
||||
Citizen.Wait( 1000 )
|
||||
|
||||
RegisterKeyBinds()
|
||||
LoadUISettings()
|
||||
RegisterKeyBinds()
|
||||
LoadUISettings()
|
||||
end )
|
||||
end
|
||||
end )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user