Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

entityRemoved event broken since newer artifacts #3042

Closed
CookayGaming opened this issue Dec 26, 2024 · 2 comments · Fixed by #3043
Closed

entityRemoved event broken since newer artifacts #3042

CookayGaming opened this issue Dec 26, 2024 · 2 comments · Fixed by #3043
Labels

Comments

@CookayGaming
Copy link

What happened?

Server Artifact : b12160 (Linux) - Maybe also on some olders
Categorie : Server side issue
Issue : entityRemoved entity args cannot be use as before, using GetEntityType or Owner send an error.
"SCRIPT ERROR: native 000000000b1bd08d: Tried to access invalid entity: 157447"
Native being dependant on which native you are using ofc.

Expected result

No error entitytype returned or 0

Reproduction steps

  1. Update to recent artifacts
  2. Add this snippet server side :
> AddEventHandler('entityRemoved', function(_entity)
>     local entity = _entity
>     --
>     local type = GetEntityType(entity)
> end)
> 
  1. Create a vehicle and then delete it (should also work on objects/peds but only tried on vehicles)
    It will send the error.

Importancy

Unknown

Area(s)

FiveM

Specific version(s)

FiveM b12160 or older

Additional information

Don't know since which artifact though.
Here if you need any infos.
Peace

@CookayGaming CookayGaming added bug triage Needs a preliminary assessment to determine the urgency and required action labels Dec 26, 2024
@CookayGaming
Copy link
Author

Tested on linux 12165 - 12164, still same issue

@github-actions github-actions bot removed the triage Needs a preliminary assessment to determine the urgency and required action label Dec 27, 2024
@CookayGaming
Copy link
Author

Fixed on 12168 ! Quick work, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant