feat: add decal class and client-side decal management functions#26
Open
JoeSzymkowiczFiveM wants to merge 2 commits into
Open
feat: add decal class and client-side decal management functions#26JoeSzymkowiczFiveM wants to merge 2 commits into
JoeSzymkowiczFiveM wants to merge 2 commits into
Conversation
FjamZoo
approved these changes
May 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new decal system, adding both a decal class and a comprehensive client-side module for managing decals in the game world. The main changes include the creation of a
renewed_decalsclass to encapsulate decal data and logic, and a new client module that handles decal creation, removal, placement, and lifecycle events. The update also provides user interaction for placing decals with visual feedback and keybinds.Decal System Implementation:
renewed_decalsclass inclasses/decals.luato encapsulate all relevant data and initialization logic for decals, including position, orientation, scale, and resource ownership.modules/decals/client.luathat manages the lifecycle of decals, including creation, removal, and cleanup on resource stop, as well as exporting functions for other modules to interact with decals.User Interaction and Placement:
Utilities and Helpers: