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

feat(gamestate/server): serverEntityCreated event #2947

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tens0rfl0w
Copy link
Contributor

Goal of this PR

This introduces a new server-side event called serverEntityCreated that gets called when a server-side script creates a new entity with invoking natives like CREATE_VEHICLE_SERVER_SETTER.

How is this PR achieving the goal

Triggering serverEntityCreated when we create an entity on the server-side per synctree initialization.

This PR applies to the following area(s)

FiveM, Server

Successfully tested on

Game builds: 3258

Platforms: Windows

Checklist

  • Code compiles and has been tested successfully.
  • Code explains itself well and/or is documented.
  • My commit message explains what the changes do and what they are for.
  • No extra compilation warnings are added by these changes.

Fixes issues

resolves #2658

This introduces a new server-side event called "serverEntityCreated" that gets called when a server-side script creates a new entity with invoking natives like "CREATE_VEHICLE_SERVER_SETTER".
@github-actions github-actions bot added the triage Needs a preliminary assessment to determine the urgency and required action label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Needs a preliminary assessment to determine the urgency and required action
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Server-Side CreatePed doesn't trigger entityCreated/entityCreating
1 participant