Changelog
Released version and their changes.
#Changes
- Moved to the new zyke_lib loader.
- Moved effects to use zyke_status, old system still works but the switch is recommended.
- Better alignment for idle particles.
- Added more base flavours for vapes, along with their items.
- Removable cartridges for vapes. If your cartridge is set as unique in your inventory, it carries the amount metadata.
- Added possibility to hide the UI via config. More info here.
- Added client
GetItemDataexport to get the item data for your equipped item. - Added ability to modify coloring of the inhale progress bar.
- Made stress management easily available even without using zyke_status.
#Files Affected
- client/unlocked/functions.lua
- client/locked/eventhandler.lua
- client/unlocked/eventhandler.lua
- using_loops/functions.lua
- nui/*
- extras/images/vape_green_flavour.png
- extras/images/vape_green_flavour.png
- extras/images/vape_green_flavour.png
- extras/images/vape_vanilla_flavour.png
- extras/images/vape_flavour_capsule.png
- server/locked/functions.lua
- server/unlocked/eventhandler.lua
- shared/unlocked/config.lua
- Showcasing how to use the new effects.
- Config.Settings.hud
- Config.Settings.itemDataIndicators
- extras/items/ox_inventory.lua
- extras/items/qb-core.lua
- shared/unlocked/main.lua
- shared/unlocked/types.lua
- fxmanifest.lua
#Changes
- Colored smoke.
- Updates sounds configuration to align with the latest zyke_sounds.
- Removed manual database setup, it now runs automatically.
- Stop playing sounds when you unequip the item.
- Instantly hide the inhaling bar when unequipping.
force_stop_usecommand to forcefully stop use in case of issues to not prevent flow of gameplay. Please still report bugs if you encounter them.
- Instantly syncing UI for recipient when transferring an item.
- Fixed effect multiplier calculation being slightly wonky.
- Misc cleanup.
#Files Affected
- client/locked/eventhandler.lua
- client/locked/using_loops/functions.lua
- extras/sounds/cough_f1.wav
- extras/sounds/cough_f2.wav
- extras/sounds/cough_f3.wav
- extras/sounds/cough_f4.wav
- extras/sounds/cough_f5.wav
- extras/sounds/cough_f6.wav
- extras/sounds/cough_f7.wav
- extras/sounds/cough_m2.ogg
- extras/sounds/cough_m3.ogg
- extras/sounds/cough_m4.ogg
- extras/sounds/cough_m5.ogg
- extras/zyke_smoking.sql
- server/locked/eventhandler.lua
- server/locked/functions.lua
- server/unlocked/eventhandler.lua
- server/unlocked/functions.lua
- server/unlocked/main.lua
- shared/unlocked/config.lua
- shared/unlocked/functions.lua
- shared/unlocked/main.lua
- shared/unlocked/types.lua
- fxmanifest.lua
#Changes
- Automatically running database on script start.
- Unlocked
LightCigarettefunction. - Re-structured to avoid excessive client syncing events.
#Files Affected
- client/locked/using_loops/functions.lua
- client/unlocked/functions.lua
- server/locked/eventhandler.lua
- server/locked/functions.lua
- server/locked/main.lua
- server/unlocked/database.lua
- server/unlocked/main.lua
- fxmanifest.lua
#Changes
- Added client & server
isOccupiedexport. - Better honk prevention handling.
- Configurable "automatic" inhaling. Press to start, press to stop. Will avoid coughing if you don't stop inhaling.
- Adjusted a few intervals for a smoother experience.
- Unique coughing sounds for female characters, along with randomly selecting the sound if more are available.
- Minor cleanup.
- Individual item effect multiplier, you can now change the potency of each smokeable.
- Better fail reason handling, to display why you can't do something.
- Configurable notification for the item you unpacked.
- Configurable option to remove a cigarette pack once it is empty.
- Moved lighter particle settings to the config.
#Files Affected
- README.md
- client/locked/eventhandler.lua
- client/locked/using_loops/functions.lua
- client/unlocked/keys.lua
- extras/sounds/cough_f1.wav
- extras/sounds/cough_f2.wav
- extras/sounds/cough_f3.wav
- extras/sounds/cough_f4.wav
- extras/sounds/cough_f5.wav
- extras/sounds/cough_f6.wav
- extras/sounds/cough_f7.wav
- extras/sounds/cough_m1.wav
- extras/sounds/grab_bong.wav
- extras/sounds/inhale.wav
- extras/sounds/inhale_bong.wav
- extras/sounds/inhale_vape.wav
- extras/sounds/lighter.wav
- extras/sounds/vape_beep.mp3
- fxmanifest.lua
- locales/en.lua
- Added
invalidAnim - Added
isDead - Added
inWater - Added
unpackedCigarette - Added
noActiveItem
- Added
- server/locked/eventhandler.lua
- server/locked/functions.lua
- server/unlocked/cigarette_pack.lua
- server/unlocked/eventhandler.lua
- shared/unlocked/config.lua
- Config.Settings
- Added
automaticSmoking - Added
removePackWhenEmpty - Added `notificationOnCigaretteUnpack
- Added
- Config.Settings.lighter
- Added
particle - Added
attempts
- Added
- Config.Settings
- shared/unlocked/functions.lua
- shared/unlocked/types.lua
#Changes
- Fixed duplicate lighter fx and lighter fluid usage.
- Adding a percentage symbol for the lighter fluid description.
- Tweaked particle creation to limit amount spawned. Previously multiple was spawned for a more realistic effect, which caused issues with pool limit.
#Files Affected
- client/locked/using_loops/funcitons.lua
- client/locked/eventhandler.lua
- server/locked/eventhandler.lua
- locales/en.lua
- Modified
lighter:description.
- Modified
- fxmanifest.lua
#Changes
- Replaced animpost effects with timecycle effects.
- Added
IsHigh,HasWalkEffect&HasScreenEffectclient exports.
#Files Affected
- client/locked/functions.lua
- client/unlocked/eventhandler.lua
- client/unlocked/functions.lua
- client/unlocked/main.lua
- shared/unlocked/config.lua
- Replaced animpost effect names with timecycle effect names.
- fxmanifest.lua
#Changes
- Added qs-inventory support to zyke_lib, allowing users to now use this resource along with it.
- Re-made screen & walk effect to work together, you are now able to have a different walk effect for all different smokeables.
- Correctly stopping animation, actions such as sitting are no longer cancelled after an animation has been performed.
- Lighter prop spawning when lighting your smokeables.
- New & more realistic lighter spark fx.
- Bong now plays lighter fx.
- Configurable lighter fluid usage, draining your lighters over time.
- Support for multiple lighter sounds, if you use completely different lighters.
- Prevent smoking when dead.
- Prevent smoking when under water.
- Prevent honking when smoking.
- Added
TransferItem&SwitchItemPlacementexports. - Unlocked keymapping file handler.
- Fixed an issue where vapes & bongs would lose their metadata if you logged out with them in your hand.
- Organized & cleaned up the code.
#Files Affected
- Replace all files.
#Changes
- Correctly chooses item used based on slot.
- Tracks metadata for all items, you can now change effects in
clientFunc&serverFuncbased on the item metadata. Also includes the item in vape & bong. - Fixed prop issues when chaing routing buckets.
- Support for looped & non-looped screen effects.
- Various type corrections.
- Providing lighter image.
- Miscellaneous cleanup in the code.
#Files Affected
- client/locked/bong/refill_item.lua
- client/locked/eventhandler.lua
- client/locked/functions.lua
- client/unlocked/eventhandler.lua
- client/unlocked/functions.lua
- server/locked/eventhandler.lua
- server/locked/functions.lua
- server/locked/main.lua
- server/unlocked/eventhandler.lua
- server/unlocked/main.lua
- shared/unlocked/types.lua
- shared/unlocked/config.lua
- Added new
metadataparameter at the end ofclientFunc&serverFunc
- Added new
- extras/items/images/lighter.png
- fxmanifest.lua
#Changes
- Item data indicators styling available to modify in the config.
- Config option to disable attacking when inhaling.
- Config option to disable shooting when a smokeable is in your hand.
#Files Affected
- client/locked/using_loops/functions.lua
- client/locked/eventhandler.lua
- nui/index.js
- locales/en.lua
- Added
armedWhenSmoking
- Added
- shared/unlocked/config.lua
- Added
disableSmokingWhenArmed - Added
disableAttackingWhenSmoking - Added
itemDataIndicators
- Added
- fxmanifest.lua
Official release for ESX and QBCore.
