🛠️Installation
Step1: Adding the resource to your server
ensure qb-core
ensure progressbar
ensure cr-effectsStep 2: Editing the config
Config.Items = {
["example"] = {
name = "phone", -- The name of the useable item
useItemText = "Smoke weed", -- What to notify when you use the item
effect = {
speed = { -- Run faster
enabled = false,
time = 30,
},
drunk = { -- Get a Drunk effect
enabled = false,
time = 30,
},
alienEffect = {
enabled = false,
time = 30,
},
relieveStress = { -- Reduce stress
enabled = false,
amount = 100
},
healthRegen = { -- Gain health regeneration
enabled = false,
time = 30,
rate = 1.8
},
ragDoll = { -- Sets the player to ragdoll
enabled = false,
time = 30
},
stumble = { -- Stumble while running
enabled = false,
time = 30
},
reliveThirst = {
enabled = false,
amount = 10
},
reliveHunger = {
enabled = false,
amount = 10
},
stamina = { -- Get more stamina so you can run longer
enabled = false,
time = 30
},
CameraShake = {
enabled = false,
time = 30, -- for how long
CameraShakeType = "SMALL_EXPLOSION_SHAKE", -- What type of shake (DEATH_FAIL_IN_EFFECT_SHAKE, DRUNK_SHAKE, FAMILY5_DRUG_TRIP_SHAKE, HAND_SHAKE, JOLT_SHAKE, LARGE_EXPLOSION_SHAKE, MEDIUM_EXPLOSION_SHAKE, SMALL_EXPLOSION_SHAKE, ROAD_VIBRATION_SHAKE, SKY_DIVING_SHAKE, VIBRATE_SHAKE)
intensity = 0.8 -- how intense the shake should be
},
ScreenFLash = { -- Adds a Screen flashing effect
enabled = false,
time = 30
},
Custom = {
enabled = false,
effectName = "test_effect",
transition = 100,
time = 3000
},
Status = {
enabled = true,
statusName = "weedsmell", -- See the docs (https://creative-development.gitbook.io/cr-effects/fundamentals/installation#what-all-the-different-things-mean-and-what-they-do)
time = 200 -- how long in seconds
}
},
progressBar = {
enabled = true, -- If you want to enable the progressbar or not
progressBarLength = 10000, -- How long the progressbar should be
progressBarText = "Smoking weed", -- What the progressbar should display
animDict = "amb@world_human_drinking@coffee@male@idle_a", -- The animation dictionary
anim = "idle_c", -- The animation in the animation dictionary
notifyProgressbarDone = "You smoked weed", -- What to notify then you progressbar is done
notifyProgressbarFail = "You droped the joint!", -- What to notify then the progressbar fails
disableMovement = false, -- If you want to be able to move (walk)
disableCarMovement = false, -- If you want to be able to control the car
disableMouse = false, -- If you want to be able to move the mouse (look around)
disableCombat = false, -- If you want to be able to fight (punch and stuff)
propSettings = {
enabled = true,
prop = "v_ret_fh_bscup",
boneId = 28422
}
},
},
-- Copy above example and add your next one under here
}What all the different things mean and what they do
Name
information
variables
The progressbar settings for each item
name
information
Propsettings
Name
Information
The different status names
Creating new items
Last updated