DoesEntityExist, HasEntityBeenMarkedForDeletion issues
What happened?
DoesEntityExist returns false in entityRemoved and HasEntityBeenMarkedForDeletion errors with invalid entities. It would be nice if HasEntityBeenMarkedForDeletion wouldnt error so it would have a use.
Expected result
A function checking if something exists should never expect the thing to exist and error if it doesnt. HasBeenMarkedForDeletion does that however. Which makes checking in entityRemoved for validity IMPOSSIBLE.
Reproduction steps
Theres no workaround...
Importancy
Slight inconvenience
Area(s)
FiveM
Specific version(s)
FiveM
Additional information
No response
There is a situation where DoesEntityExist returns false, while HasEntityBeenMarkedForDeletion returns 1. But there is no reliable way to call the function as it errors.
NetworkDoesEntityExistWithNetworkId doesnt work for sv