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

BreakOffVehicleWheel native doesn't delete wheel for other clients #2498

Open
CeebDev opened this issue May 5, 2024 · 8 comments
Open

BreakOffVehicleWheel native doesn't delete wheel for other clients #2498

CeebDev opened this issue May 5, 2024 · 8 comments
Labels
bug triage Needs a preliminary assessment to determine the urgency and required action

Comments

@CeebDev
Copy link

CeebDev commented May 5, 2024

What happened?

When using BreakOffVehicleWheel native with the param deleteWheel at true it delete the wheel for the initiator of the native but not for other clients

image
image

Expected result

If deleteWheel is set to true, it should delete wheel for every clients

Reproduction steps

  • Need 2 clients at least
  • Execute this on the vehicle owner
local vehicle = GetVehiclePedIsIn(PlayerPedId())
BreakOffVehicleWheel(vehicle, 0, false,  true, false, false)
  • Wheel is deleted for owner but not for other clients

Importancy

Slight inconvenience

Area(s)

FiveM, Natives

Specific version(s)

FiveM b3095 (canary), Server b7930 windows

Additional information

No response

@CeebDev CeebDev added bug triage Needs a preliminary assessment to determine the urgency and required action labels May 5, 2024
@JericoFX
Copy link

JericoFX commented May 5, 2024

Try to use state bags, with the doors happend the same

@PsychoShock
Copy link
Contributor

This is not a issue, native is not networked. Like @JericoFX said, you can use state bags wich is made for that case.

@CeebDev
Copy link
Author

CeebDev commented May 6, 2024

This is not a issue, native is not networked. Like @JericoFX said, you can use state bags wich is made for that case.

But wheel is removed from the vehicle, so this is networked but not the wheel deletion ?

@ahcenezdh
Copy link

@Laikker
Copy link

Laikker commented May 7, 2024

I'm not sure but looks like this native is networked? https://github.com/citizenfx/fivem/blob/9f2ea4c6e8eb8a3a3b26b4a8bc99866579d2352f/code/components/extra-natives-five/src/VehicleExtraNatives.cpp#L1657C4-L1658C1

From tests i made, It seems that when the last paremeter is true, the native has no effect on network entities that are not owned

@JericoFX
Copy link

JericoFX commented May 7, 2024

same thing happend with this issue #1858, my solution was using state bags to ensure that every player recive the correct data.

@ahcenezdh
Copy link

ahcenezdh commented May 15, 2024

This is weird, @Disquse does this native is networked by default? or we have to use statebags to sync it

@Disquse
Copy link
Contributor

Disquse commented May 16, 2024

We're not altering the game's behavior at this point. From what I remember most of the functionality was networked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Needs a preliminary assessment to determine the urgency and required action
Projects
None yet
Development

No branches or pull requests

6 participants