forked from Simnation/Main
fix
This commit is contained in:
parent
d0bf77b459
commit
b217c8ff3d
2 changed files with 35 additions and 12 deletions
|
@ -26,18 +26,13 @@ RegisterCommand("relog", function()
|
|||
z = coords.z
|
||||
}, heading)
|
||||
|
||||
|
||||
QBCore.Functions.Notify("Position gespeichert. Du wirst in 2 Sekunden zum Charaktermenü weitergeleitet...", "primary")
|
||||
QBCore.Functions.Notify("Position gespeichert. Leite zum Charaktermenü weiter...", "primary")
|
||||
|
||||
|
||||
Wait(2000)
|
||||
Wait(1000)
|
||||
|
||||
|
||||
TriggerEvent("um-multicharacter:client:chooseChar")
|
||||
|
||||
|
||||
Wait(500)
|
||||
TriggerServerEvent("qb-relogsave:server:kickForRelog")
|
||||
TriggerServerEvent("qb-relogsave:server:goToMultichar")
|
||||
end, false)
|
||||
|
||||
|
||||
|
@ -52,7 +47,7 @@ end)
|
|||
|
||||
|
||||
RegisterNetEvent("QBCore:Client:OnPlayerLoaded", function()
|
||||
Wait(1000)
|
||||
Wait(1000) --
|
||||
RestorePosition()
|
||||
end)
|
||||
|
||||
|
@ -77,10 +72,11 @@ function RestorePosition()
|
|||
Wait(500)
|
||||
DoScreenFadeIn(500)
|
||||
|
||||
|
||||
|
||||
savedLocation = nil
|
||||
|
||||
QBCore.Functions.Notify("Position wiederhergestellt", "success")
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue