citizenfx / fivem

The source code for the Cfx.re modification frameworks, such as FiveM, RedM and LibertyM, as well as FXServer.
https://cfx.re/
3.57k stars 2.11k forks source link

[RedM] Handler entityCreating with OneSync #2241

Open desperadisse opened 1 year ago

desperadisse commented 1 year ago

Hello, Sorry to disturb you. Are entityCreating event servers on RedM broken with OneSync? When I do a GetEntityModel it returns 0 and sometimes the Ped/Object model. Do you have any ideas?

I'm in 1491 with the latest CFX artifact. Thanks in advance

Disquse commented 1 year ago

It's not directly related to entityCreating event.

GET_ENTITY_MODEL doesn't work on objects for now in RedM as creation data node hasn't been parsed yet, see: https://github.com/citizenfx/fivem/blob/3de0c02faa33ea3362500d3e876c0c17668f0f6d/code/components/citizen-server-impl/include/state/SyncTrees_RDR3.h#L1360

However, peds must work, do you have any reproduction steps maybe? Or maybe it's some specific types of peds?

desperadisse commented 1 year ago

Okay, so there's no way to control entity creation at the moment if I understand correctly. I use spooner and even for some pedawner through this utility, the model does not come out. https://github.com/kibook/spooner

Is there an alternative to control these entities?

Thank you in advance and thank you for your quick and precise reply.