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

Peds are losing their weapons #2707

Closed
spacevx opened this issue Aug 12, 2024 · 2 comments
Closed

Peds are losing their weapons #2707

spacevx opened this issue Aug 12, 2024 · 2 comments
Labels

Comments

@spacevx
Copy link
Contributor

spacevx commented Aug 12, 2024

What happened?

When creating a ped using the server setter and giving a weapon to the ped, if we leave the scope of the ped and re-enter the scope, the ped will lose its weapon. I'm pretty sure @Lucas7yoshi already reported an issue like this on Discord, but I can't remember where

Here is a small video: https://streamable.com/tpyo0b

Expected result

The ped shouldn't lost his weapon

Reproduction steps

  1. Create a ped server-side.
  2. Use statebags to listen for when the ped enters the player's scope.
  3. Give the ped a weapon using the native GIVE_WEAPON_TO_PED.
  4. Exit the scope of the ped (you need to move far away from the ped).
  5. Re-enter the scope of the ped.

Importancy

Unknown

Area(s)

FXServer

Specific version(s)

FiveM v1.0.0.8903 win32

Additional information

No response

@spacevx spacevx added bug triage Needs a preliminary assessment to determine the urgency and required action labels Aug 12, 2024
@spacevx
Copy link
Contributor Author

spacevx commented Aug 12, 2024

Same as #2097

@Nobelium-cfx
Copy link
Contributor

Closing as a duplicate of #2097 . We can continue work in the original issue.

@github-actions github-actions bot removed the triage Needs a preliminary assessment to determine the urgency and required action label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants