Configuration
This page contains all information you need to configure gfg_drugeffects, if you have any questions feel free to reach out to us on our discord.
Config
Config
Language
Language sets which Locale to use, you can find available locales in [gfg_drugeffects/locale/], we will add more as they become available but feel free to add your own.
Debug
Debug should only used in a development environment
Determines whether to send debug print statements to the client and server when using the script
inventory
Determines wich inventory resource to use.
Currently supported options are:
"ox_inventory"
"qb_inventory"
useMinutes
Determines whether to use minutes or milliseconds for the effect duration.
Config.DrugEffects
Config.DrugEffects
itemName
The name of the item in your inventory script.
useTime
Determines how long after the item is used to start the effect.
name
Arbitrary name of the effect (Only used for debugging).
effect
needs to be "looped" (Runs until the set time is over)
Determines wich effect to use.
duration
if Config.useMinutes is true then this is in minutes, otherwise it is milliseconds
Determines how long to play the effect for.
drunk
If 'true' sets the player to drunk. (no effects specifically linked to this value)
blur
If 'true' enables motion blur for duration of the effect.
sprintMultiplier
this value can't be over 1.49
Determines the players sprint multiplier (1.0 being normal)
walkingAnimation
Determines the Movement Clipset (set to 'none' if you want to use the default)
timecycle
Determines the timecycle to play for the duration of the effect.
name
= Determines which timecycle to use (set to 'none' if you want to ignore this).
strength
= Determines the strength of the timcycle
transition
The effect for transition needs to be 'non-looped' for the cleanest look
The transition played before and after the effect.
enable
= If 'true' will use this transition.
type
= Determines the type of animation ('in' plays before the main effect, 'out' plays after the main effect.)
effect
= Determines wich effect to use.
duration
= Determines the duration of the transition effect. (in milliseconds)
requiredItems
You can have multiple required items.
Items needed in order to use the item and play the effect.
itemName
= The name of the item in your inventory script.
count
= The amount of the item needed.
Last updated