Adding or Modifying Props
How to Add or Modify Props
return {
small_trailer = {
props = { `prop_air_fueltrail1`, `prop_air_fueltrail2` }, -- List of props this applies to
label = "Siphon Gasoline", -- Text shown in target + UI
icon = "fas fa-gas-pump", -- FontAwesome icon for DUI + targeting
duration = 12, -- Time (seconds) to fill the bucket
cooldown = 120, -- Cooldown time (seconds) before siphoning again
global_cooldown = true, -- If true, cooldown is shared by all players
alerts = { -- Optional police alerts
chance = 100, -- % chance to alert police
jobs = { "police", "fib" }, -- Job names to alert
on_duty_only = true -- Trigger only for on duty officers
},
guard = { -- Optional hostile NPCs
chance = 0, -- % chance to spawn guards on siphon start
count = { min = 3, max = 5 }, -- Random number of peds in range
models = { `s_m_y_armymech_01` }, -- Ped model(s) to choose from
weapons = { -- Weighted weapon list (higher = more likely)
{ hash = `WEAPON_WRENCH`, weight = 50 }, -- Common melee weapon
{ hash = `WEAPON_CARBINERIFLE`, weight = 50, ammo = 100 } -- Rare ranged weapon with ammo
}
},
explode = { -- Optional explode chance
chance = 0, -- Chance of explosion happening
explode_when = "random", -- "on_collect" - When player collects | "random" - Randomly throughout siphon process
damage_radius = 10.0, -- Radius of the explosion
damage = 200.0, -- Damage caused by explosion
explosion_type = 2 -- Explosion type (2 is a normal explosion)
},
reward = { -- Reward given after successful siphon
id = "gasoline", -- Internal item name
label = "Gasoline", -- Friendly display name
min = 2, max = 5 -- Random amount between min and max
}
}
}Prop Options Explained
Adding New Props
Final Steps
Last updated