mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
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:
@@ -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`)
|
* 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:
|
### Replace this code:
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
|
|||||||
Reference in New Issue
Block a user