-- Use default sound
collectSound = true,
-- Disable sound
collectSound = false,
-- Custom sound
collectSound = {
audioName = 'PLAYER_COLLECT', -- Name of the audio to play
audioRef = 'DLC_PILOT_MP_HUD_SOUNDS', -- Audio reference/set to use
},
animations = { -- Animations to use for this set
pickup = { -- Pickup animation
animDictionary = 'anim@move_m@trash', -- The animation dictionary
animationName = 'pickup', -- The name of the animation within the dictionary
animFlags = 0, -- Animation flag
duration = 3000, -- Duration in milliseconds
},
},
items = {
{ coords = vec3(123.45, 678.90, 12.34) }, -- Uses set hint
{ coords = vec3(234.56, 789.01, 23.45), hint = 'Custom' }, -- Uses custom hint
},
example_set = { -- Unique set name
label = 'Example Set', -- Display name for the set
description = 'This is the set description shown in the UI', -- Description shown in UI
model = 'xm3_prop_xm3_box_wood03a', -- Prop model to spawn
icon = 'action-figure-pogo.png', -- Icon for stickers in UI (image path 'action-figure-pogo.png', or 'fa:icon-name' for Font Awesome)
grounded = true, -- Place object on ground (default: true)
pickupType = 'target', -- How to collect: 'target' | 'prompt' | 'nearby' (default: 'target')
pickupDistance = 2.5, -- Distance to trigger pickup (default: 1.5)
enabled = false, -- Enabled/disable the collectable set
collectSound = { -- Play sound on collection: boolean|table (default: true for 'nearby', false for 'target' and 'prompt')
audioName = 'PLAYER_COLLECT', -- Name of the audio to play
audioRef = 'DLC_PILOT_MP_HUD_SOUNDS', -- Audio reference/set to use
},
hint = 'The hint for all the items', -- Default hint for all items in set
rewards = { -- Rewards for collecting items and completing the set
onCollect = { money = 100, moneyType = 'cash' }, -- Reward for each collected item
onComplete = { -- Reward for completing the entire set
money = 5000, -- Amount of money
moneyType = 'bank', -- Money type to give ('cash', 'bank')
item = { name = 'reward_trophy', count = 1 }, -- Item to give and amount
},
},
blip = { -- Optional blip for all items (https://docs.fivem.net/docs/game-references/blips/)
enabled = true, -- Enable/disable the blip (enabled by default)
sprite = 478, -- Blip sprite
colour = 1, -- Blip colour
title = 'Example Collectable Item', -- Blip title
scale = 0.5, -- Optional custom scale
},
animations = { -- Animations to use for this set
pickup = { -- Pickup animation
animDictionary = 'anim@move_m@trash', -- The animation dictionary
animationName = 'pickup', -- The name of the animation within the dictionary
animFlags = 0, -- Animation flag
duration = 3000, -- Duration in milliseconds
},
},
items = { -- List of collectable items in this set
{ coords = vec3(-140.39, -173.98, 93.70) }, -- With just coordinates
{ coords = vec3(-146.05, -166.42, 95.00), grounded = false }, -- With grounded override
{ coords = vec3(-133.97, -163.08, 93.70), model = 'prop_alien_egg_01' }, -- With model override
{ coords = vec3(-129.66, -163.58, 93.70), icon = 'fa star' }, -- With image override
{ coords = vec3(-138.27, -163.77, 93.70), hint = 'A hint just for this item' }, -- With hint override
{
coords = vec3(-140.48, -164.42, 93.70), -- With multiple overrides
grounded = false,
model = 'prop_box_ammo07a',
icon = 'fa box-open',
hint = 'This box looks different..',
},
{
coords = vec3(-145.03, -170.40, 93.70), -- With optional blip
blip = { -- Optional blip for this item
sprite = 514, -- Blip sprite
colour = 27, -- Blip colour
title = 'Special Test Box', -- Blip title
scale = 0.7, -- Optional custom scale
},
},
{
coords = vec3(-141.85, -166.10, 93.70), -- With animation override
animations = { -- Animation only for this item
pickup = { -- Pickup animation
animDictionary = 'anim@gangops@facility@servers@bodysearch@', -- The animation dictionary
animationName = 'player_search', -- The name of the animation within the dictionary
animFlags = 0, -- Animation flag
duration = 1500, -- Duration in milliseconds
},
},
},
{
coords = vec3(-130.67, -168.78, 92.70), -- With collect sound override
collectSound = {
audioName = 'RANK_UP',
audioRef = 'HUD_AWARDS',
},
},
},
},