Skip to content

feat: add decal class and client-side decal management functions#26

Open
JoeSzymkowiczFiveM wants to merge 2 commits into
Renewed-Scripts:mainfrom
JoeSzymkowiczFiveM:main
Open

feat: add decal class and client-side decal management functions#26
JoeSzymkowiczFiveM wants to merge 2 commits into
Renewed-Scripts:mainfrom
JoeSzymkowiczFiveM:main

Conversation

@JoeSzymkowiczFiveM
Copy link
Copy Markdown
Contributor

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_decals class 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:

  • Added a new renewed_decals class in classes/decals.lua to encapsulate all relevant data and initialization logic for decals, including position, orientation, scale, and resource ownership.
  • Implemented a client-side module in modules/decals/client.lua that 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:

  • Introduced a user interface and controls for placing decals in the world, allowing users to position, scale, and confirm or cancel decal placement with visual feedback and keybinds.

Utilities and Helpers:

  • Added helper functions for calculating decal orientation, handling vector math, and managing decal data within the client module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants