Creating Items
Consumable Items
water = {
id = "water",
label = "Water",
description = { "A refreshing bottle of clean water.." },
image = "water.png",
stackable = 10,
data = {
rarity = "common",
degrade_rate = 0.25,
quality = 100
},
actions = {
use = {
animation = {
progress = {
type = "circle",
message = "Drinking Water..",
segments = 30,
gap = 3
},
dict = "mp_player_intdrink",
anim = "loop_bottle",
flags = 49,
duration = 5000,
freeze = false,
continuous = false,
props = {
{
model = "ba_prop_club_water_bottle",
bone = 60309,
coords = { x = 0.0, y = 0.0, z = -0.05 },
rotation = { x = 0.0, y = 0.0, z = 0.0 },
is_ped = true,
sync_rot = true
}
},
callback = function(_src, slot)
TriggerEvent("list_inventory:sv:remove_item", _src, slot)
end
}
},
drop = true
}
}Ammo Items
Weapons
Weapon Attachments
Notes
Last updated