Silly Cigar โ Exploding Cigar Item (RedM / VORP / RSGCore) ๐ฌ๐ฅ
๐ Description
Silly Cigar gives your RedM players a cigar prank to share: pass someone a prepared cigar through your usual inventory system and watch their smoking break end with a surprise explosion. Lighting it with matches starts a short, unpredictable fuse, then the smoker ragdolls while nearby players see the cigar and effect.
Built with a multi-framework bridge for VORP or RSGCore, automatic framework detection and German / English localization. Server-side inventory checks and a per-player cooldown manage item use; fuse timing, explosion settings and prop placement are configurable.
โจ Features
- ๐ฌ Usable
fakecigaritem with a hand-attached cigar prop. - ๐ฅ Matches requirement โ consumes one cigar and one
matchesitem per successful use. - ๐ญ Smoking scenario while the fuse runs.
- โฒ๏ธ Random 3โ5-second delay before the explosion.
- ๐ Nearby visual effects for players within 90 m.
- ๐ฅ Editable explosion type and scale โ type
29, scale0.1by default. - ๐คธ 2.5-second owner ragdoll after the explosion.
- ๐ก๏ธ Server inventory validation โ attempts to return the cigar if matches removal fails.
- โฑ๏ธ 8-second cooldown per player.
- ๐งน Cigar prop cleanup after use and on resource stop.
- ๐ Multi-Framework โ VORP or RSGCore, auto-detected or selected in configuration.
- ๐ Multi-Language โ DE / EN included, with editable translations and custom text overrides.
- ๐๏ธ Optional automatic SQL item setup through
db_setup.luaand oxmysql. - ๐ฆ Open configuration and locales โ
config.luaandconfiglang.luaare listed inescrow_ignore.
๐ Multi-Framework & ๐ Multi-Language
Use VORP (vorp_core + vorp_inventory) or RSGCore (rsg-core + rsg-inventory). Config.Framework = 'auto' detects the active framework; 'vorp' and 'rsgcore' let you select it explicitly. RSGCore messages use ox_lib notifications.
Switch between German and English with Config.Language = 'DE' / 'EN'. Customize configlang.lua or override individual messages through Config.Texts; missing translations fall back to English. Inventory item labels can be adjusted separately through Config.ItemLabels.
๐ฎ How It Works
- Carry a prepared cigar and matches.
- Use the cigar in your VORP or RSG inventory.
- An alive/on-foot check runs before the server consumes one cigar and one match, subject to the inventory checks and cooldown.
- A smoking scenario starts and nearby players see the cigar in your hand.
- After the random fuse, the explosion plays at your current position and your character ragdolls.
๐ง Installation
-
Place the
Silly_Cigarresource folder containingfxmanifest.luain your server resources. -
Add the configured items to your inventory definitions (
fakecigarandmatchesby default). On RSGCore, register them in the framework's shared item definitions. -
Start the resource after your framework and inventory. For VORP:
ensure vorp_core ensure vorp_inventory ensure Silly_CigarOr, for RSGCore:
ensure ox_lib ensure rsg-core ensure rsg-inventory ensure Silly_Cigar -
Enable OneSync, then select the framework and language and adjust items, timings, prop placement and explosion settings in
config.lua.
If oxmysql is running, db_setup.lua can add missing cigar and matches entries to a supported SQL item table (items, vorp_items or vorp_inventory_items). Start oxmysql before this resource when using that setup. RSGCore shared item definitions still need to be added separately; the SQL installer does not replace them.
๐ฆ Dependencies
| Dependency | Required |
|---|---|
| RedM + OneSync | โ
โ server-side positions select nearby visual recipients |
| VORP Core or RSGCore | โ
โ one framework |
| Matching inventory | โ
โ vorp_inventory or rsg-inventory |
| ox_lib | For RSGCore notifications |
| Configured cigar and matches items | โ
|
| oxmysql | Optional โ automatic SQL item setup |
โ๏ธ Highlights from config.lua
-
Config.Framework,Config.Languageโ framework selection and DE / EN messages. -
Config.CigarItem,Config.MatchesItemโ item names. -
Config.MinDelay,Config.MaxDelay,Config.Cooldownโ fuse and cooldown in milliseconds. -
Config.VisibilityRadiusโ nearby visual recipients in metres. -
Config.ExplosionType,Config.ExplosionScale,Config.RagdollMsโ explosion and owner reaction. -
Config.CigarProp,Config.PropBone,Config.PropOffset,Config.PropRotationโ cigar attachment. -
Config.Textsโ custom inventory and lighting message overrides. -
Config.ItemLabelsโ labels for newly created SQL item entries.
The visual radius does not define a damage radius. The resource uses a game explosion effect and does not enforce a non-lethal outcome.
๐ฌ Video Preview
๐ฌ Watch Video Preview
:writing_hand: Come Join our Discord
๐ Download
๐ Silly Scripts Tebex Store
| | | |---|---| | Code is accessible | Lua source and configuration are included in the current resource | | Subscription-based | See store listing | | Lines (approximately) | ~1,180 Lua lines including bridge, locales and item setup | | Requirements | RedM + OneSync + VORP or RSGCore and matching inventory | | Support | Discord |

