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| Option | What it does |
|---|---|
R.TextUI | Prompt style: gta, r_interact, ox_lib, okok, qb, jg, cd, esx, or custom (edit bridge/cl_textui.lua). |
R.Command | false, or a command name like 'firework': /firework <name> without an item, for players with the ace r_props_newyear.firework. |
R.Volume | Volume of every sound, 0.0 to 1.0. Players' own game volume applies on top. |
R.ViewDistance | Players within this many metres see and hear a shot. |
R.Lighter | Model of the lighter in the left hand while lighting, false for none. |
R.FireOnDown | A lit firework still goes off when its owner falls or dies. |
R.Confetti | Seconds a confetti pile stays on the floor, 0 for none. |
R.Scare | Pedestrians 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,
}| Option | What it does |
|---|---|
enabled | Shots hit players, pedestrians and vehicles. false makes them harmless. |
radius | Metres around a burst that count as a hit. |
damage | Health taken per hit, doubled on a direct hit. 0 for no damage. |
minHealth | Fireworks never take anyone below this health. |
ragdoll | Milliseconds a hit knocks a person over, 0 for never. |
push | How hard a hit throws a person. |
flash | A 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,
}| Option | What it does |
|---|---|
enabled | Shots damage vehicles. |
dent | Size of the dent on a direct hit. |
engine, body | Engine and body health taken per hit. |
minEngine | A vehicle never goes below this engine health, so fireworks never set it smoking. |
windows | A hit next to a window breaks it. |
tyres | A direct hit on a wheel bursts the tyre. |
alarm | An 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',
},| Option | What it does |
|---|---|
type | shoot fires from the hand, throw throws it. |
item | The item that gives it. |
fuse | Milliseconds from lighting to the first shot (for throw, from the throw to the bang). |
shots, interval | How many shots, and milliseconds between them. |
speed, flight | Metres per second, and milliseconds before the burst. Together they set the range. |
power | How hard it hits, times the R.Hit values. |
effect | The 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.