modxModules

Modules in Ks_CTU

The modules system in Ks_Click_To_Use was implemented to improve the organization and fluidity of the script, ensuring that each Killstore product integrates seamlessly.

Whenever a new product is acquired, its respective module is automatically updated, allowing immediate use.

Additionally, you can use the Click-to-Use system for your own props by adding custom modules in:

Ks_Click_To_Use-Assets\modules\_OwnModule\my_module.lua

Updating Your Assets

When you buy something related to click to use you will have new folders, Script and Modules , Only need to take the Ks_Click_To_Use_Assets And Put It Into your [ks-ctu] folder.

If you are updating its gonna replace it, if you are adding a new pack its gonna be added and thats its! you are ready to go.

Now you need to go to Ks_Click_To_Use_Assets Folder, ICON Folder to update your inventory images.

Module Structure

Each module is stored in:

Ks_Click_To_Use-Assets\modules\**\*.lua

For example, the Milk Bag module is located at:

Ks_Click_To_Use-Assets\modules\Milk_Bag\Milk_Bag.lua

This module specifically handles Milk Bag backpacks, and any updates to this product will automatically reflect in the module.

Example Configuration

A fully structured module looks like this:

Key Elements of a Module

1๏ธโƒฃ Item Configuration (Ks_Ctu.MyCustom)

Each item inside the module has the following customizable settings:

Property
Description

prop

The in-game object/prop associated with the item.

bodyPart

The position where the item will be attached.

Progress

The progress bar type assigned to the item.

animation

Custom animations for using the item.

sound

GTA V native sounds triggered when using the item.

surprises

Defines item rewards when interacting with the item.

Last updated