Skip to content

Conversation

@ook3D
Copy link
Contributor

@ook3D ook3D commented Dec 28, 2025

…ht states

Goal of this PR

Add natives to manage the light states of entities, useful to manually enable lights for specific entities when using "blackout" script(s)
...

How is this PR achieving the goal

Implementation hooks Lights::AddSceneLight which is called for all entity lights.
CLightEntity has m_parentEntity at offset 0xD0 which points to the actual entity.
...

This PR applies to the following area(s)

FiveM, Natives
...

Successfully tested on

Game builds: ..
3095, 3258
Platforms: Windows, Linux
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

@github-actions github-actions bot added the invalid Requires changes before it's considered valid and can be (re)triaged label Dec 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

invalid Requires changes before it's considered valid and can be (re)triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant