Fixes a client-crash when calling physics-altering natives on an object that was created by CreateObjectNoOffset on the server-side.
How is this PR achieving the goal
We now populate the CGlobalFlagsDataNode with the needed flag bits on object creation so the owning client doesn't crash when pushing node updates in the 'Update' method.
This PR applies to the following area(s)
FiveM, Server
Successfully tested on
Game builds: 2060, 2699, 3095
Platforms: Windows
Checklist
[x] Code compiles and has been tested successfully.
[x] Code explains itself well and/or is documented.
[x] My commit message explains what the changes do and what they are for.
[x] No extra compilation warnings are added by these changes.
Goal of this PR
Fixes a client-crash when calling physics-altering natives on an object that was created by
CreateObjectNoOffset
on the server-side.How is this PR achieving the goal
We now populate the
CGlobalFlagsDataNode
with the needed flag bits on object creation so the owning client doesn't crash when pushing node updates in the 'Update' method.This PR applies to the following area(s)
FiveM, Server
Successfully tested on
Game builds: 2060, 2699, 3095
Platforms: Windows
Checklist
Fixes issues
fixes #2583