Skip to content

[Bug] - esx_extended - problem with kill, player death and interaction #1621

@karolmystore

Description

@karolmystore

Describe the bug
When a player dies for the first time, he does not see a counter, he is not considered dead, only after using the “revive” command and dying again does the animation and death screen appear. In addition, before the player dies and is healed again, there is a problem with interaction - the error “Tried to spawn vehicle on the client but the position is too far away (Out of onesync range)”, it displays when it wants a car (driving school) to appear in the distance of the player. Only after the player is killed and healed, the error stops and everything works correctly. I have the impression that the server does not see the live player after joining the server, only after killing and reviving the player everything works correctly.

I've been going through this problem for several hours and in older versions of es_extended e.g.: 1.10.7 after completely removing lines 21-23 the problem completely disappears and everything works correctly when joining the server and the first death. In the latest version after removing these lines the problem still occurs so please help.

I did not make any changes in the script, it was tested on wasabi_ambulance as well as on esx_ambulancejob and the exact same problem occurs

while not DoesEntityExist(ESX.PlayerData.ped) do
    Wait(20)
end

from es_extended/client/main.lua

To Reproduce
Steps to reproduce the behavior:

  1. Connect to game
  2. The player will not be given the option to call for help or see a timer until revival after death.

Debug Info (please complete the following information):

  • OS: Linux
  • FiveM Artifact: 13068
  • ESX Version: 1.12.4 Latest
  • Multichar

Video - record of the problem
https://streamable.com/g07fa6

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

Status

🆕 To be Discussed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions