Skip to content
Black FridayUp to 40% off
Documentation
Props8New Year Props

r_props_newyear Configuration

Every New Year Props setting in shared/config.lua: prompts, sounds, hits, vehicle damage, fireworks, party items and wearables.

Everything is in shared/config.lua. The defaults are what you see in the showcase.

General

R.TextUI = 'gta'
R.Command = false
R.Volume = 0.7
R.ViewDistance = 350.0
R.Lighter = 'r_ny_lighter'
R.FireOnDown = true
R.Confetti = 60
R.Scare = 25.0
OptionWhat it does
R.TextUIPrompt style: gta, r_interact, ox_lib, okok, qb, jg, cd, esx, or custom (edit bridge/cl_textui.lua).
R.Commandfalse, or a command name like 'firework': /firework <name> without an item, for players with the ace r_props_newyear.firework.
R.VolumeVolume of every sound, 0.0 to 1.0. Players' own game volume applies on top.
R.ViewDistancePlayers within this many metres see and hear a shot.
R.LighterModel of the lighter in the left hand while lighting, false for none.
R.FireOnDownA lit firework still goes off when its owner falls or dies.
R.ConfettiSeconds a confetti pile stays on the floor, 0 for none.
R.ScarePedestrians within this range of a burst run away, 0.0 turns it off.

Prompts

R.Text holds the help text for every item (shoot, throw, sparkler, sparkler_lit, horn, popper). Change the words or translate them here. ~INPUT_ATTACK~ and ~INPUT_VEH_DUCK~ show the player's own keys.

Hits

R.Hit = {
    enabled = true,
    radius = 2.2,
    damage = 6,
    minHealth = 120,
    ragdoll = 1400,
    push = 3.5,
    flash = true,
}
OptionWhat it does
enabledShots hit players, pedestrians and vehicles. false makes them harmless.
radiusMetres around a burst that count as a hit.
damageHealth taken per hit, doubled on a direct hit. 0 for no damage.
minHealthFireworks never take anyone below this health.
ragdollMilliseconds a hit knocks a person over, 0 for never.
pushHow hard a hit throws a person.
flashA white flash and ringing ears for a player who is hit.

Vehicles

R.Vehicle = {
    enabled = true,
    dent = 550.0,
    engine = 45.0,
    body = 60.0,
    minEngine = 350.0,
    windows = true,
    tyres = true,
    alarm = true,
}
OptionWhat it does
enabledShots damage vehicles.
dentSize of the dent on a direct hit.
engine, bodyEngine and body health taken per hit.
minEngineA vehicle never goes below this engine health, so fireworks never set it smoking.
windowsA hit next to a window breaks it.
tyresA direct hit on a wheel bursts the tyre.
alarmAn empty vehicle starts its alarm.

Fireworks

R.Fireworks has one entry per firework you fire from the hand: thunder, turbo, career, roman and magnum.

thunder = {
    type = 'shoot',
    item = 'ny_thunder',
    model = 'r_ny_thunder',
    spent = 'r_ny_thunder_spent',
    fuse = 3200,
    shots = 1,
    interval = 0,
    speed = 34.0,
    flight = 1050,
    power = 1.0,
    effect = 'thunder',
},
OptionWhat it does
typeshoot fires from the hand, throw throws it.
itemThe item that gives it.
fuseMilliseconds from lighting to the first shot (for throw, from the throw to the bang).
shots, intervalHow many shots, and milliseconds between them.
speed, flightMetres per second, and milliseconds before the burst. Together they set the range.
powerHow hard it hits, times the R.Hit values.
effectThe look of the burst: thunder, turbo, career, roman or magnum.

The muzzle, tip, hold and aim values fit the models: leave them as they are.

Party items

R.Party.sparkler.burn is how long a sparkler burns, in milliseconds (default 60000). The item names are in R.Party (ny_sparkler, ny_party_horn, ny_popper). The hold values fit the models.

Wearables

R.Wear has the party hat and the safety glasses. item is the item name and slot the ped prop slot that comes off while it is worn (0 hats, 1 glasses): the player's own hat or glasses come back when they take ours off.