From 7a142d87ca559f406bb04c2de6229477f3b256de Mon Sep 17 00:00:00 2001 From: KoolAiddTV <51595577+KoolAiddTV@users.noreply.github.com> Date: Wed, 1 Apr 2020 00:30:11 -0400 Subject: [PATCH] New code to comment out With that code commented out the spawn in is back to normal. It allows for the backdrop when character selecting and does the actual drop-in on the camera. --- readme.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/readme.md b/readme.md index 8d293430..de267825 100644 --- a/readme.md +++ b/readme.md @@ -7,6 +7,27 @@ Instrukcja w języku Polskim znajduje się [tutaj](https://github.com/fivem-ex/e * es_extended: (`es_extended/client/main.lua`) +### Comment out this code: +```lua +-- check if player is coming from loading screen + if GetEntityModel(PlayerPedId()) == GetHashKey('PLAYER_ZERO') then + local defaultModel = GetHashKey('a_m_y_stbla_02') + RequestModel(defaultModel) + + while not HasModelLoaded(defaultModel) do + Citizen.Wait(100) + end + + SetPlayerModel(PlayerId(), defaultModel) + local playerPed = PlayerPedId() + + SetPedDefaultComponentVariation(playerPed) + SetPedRandomComponentVariation(playerPed, true) + SetModelAsNoLongerNeeded(defaultModel) + FreezeEntityPosition(playerPed, false) + end +``` + ### Replace this code: ```lua