fivem icon indicating copy to clipboard operation
fivem copied to clipboard

fix(gamestate/server): Populate CGlobalFlagsDataNode on object create

Open tens0rfl0w opened this issue 1 year ago • 1 comments

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

  • [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.

Fixes issues

fixes #2583

tens0rfl0w avatar Jun 16 '24 01:06 tens0rfl0w