From 26b1a6856bbcd76e5d83164dd5c4bab17348266b Mon Sep 17 00:00:00 2001 From: Linden Date: Sat, 26 Jun 2021 05:19:56 +1000 Subject: [PATCH] fix(client): Set the player heading when moving to character selection --- client/main.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/client/main.lua b/client/main.lua index 767a2181..dca1e501 100644 --- a/client/main.lua +++ b/client/main.lua @@ -26,6 +26,7 @@ if ESX.GetConfig().Multichar then Spawned = false cam = CreateCamWithParams("DEFAULT_SCRIPTED_CAMERA", Config.Spawn.x, Config.Spawn.y+1.6, Config.Spawn.z+1.3, 0.0, 0.0, 180.0, 100.00, false, 0) SetEntityCoords(PlayerPedId(), Config.Spawn.x, Config.Spawn.y, Config.Spawn.z, true, false, false, false) + SetEntityHeading(PlayerPedId(), Config.Spawn.w) DoScreenFadeOut(0) SetCamActive(cam, true) RenderScriptCams(true, false, 1, true, true)