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:
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.
Ks_Ctu = Ks_Ctu or {}
ProgressBar = ProgressBar or {}
Ks_Ctu.MyCustom = {
--:: Example for an item with default customization >>
['Item_Name'] = {
prop = 'prop_name',
bodyPart = 'back', -- Uses Killstore's preconfigured position
Progress = 'blue', -- Uses a predefined progress bar theme
},
--:: Example for a fully customized item >>
['Item_Name2'] = {
prop = 'hei_prop_heist_box',
bodyPart = { -- Customizable position (Offset and Rotation)
-- bone | x | y | z | xr | yr | zr | flag | flag | flag | flag | flag | flag |
24818, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, false, false, false, false, 2, true
},
animation = { -- Custom animation settings
animName = 'anim@heists@box_carry@', animDict = 'idle'
},
sound = { 'Bomb_Disarmed', 'GTAO_Speed_Convoy_Soundset' }, -- Native GTA V sound
surprises = {
['bandage'] = 1,
['water'] = math.random(4,6)
},
Progress = 'magical', -- Uses a custom Killstore progress bar for this item
},
}
-- Default progress bar for the entire module (if not explicitly set per item)
ProgressBar.MyCustom = 'default'