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.
This commit is contained in:
KoolAiddTV
2020-04-01 00:30:11 -04:00
committed by GitHub
parent c3b23f3973
commit 7a142d87ca
+21
View File
@@ -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