Installation
Last updated
Last updated
Drag and drop the cr-effects folder to your resource folder.
Make sure you install the dependancies: , .
Make sure you have the below start order in your server.cfg.
Below is an example of an item with effects.
This need to be a unique name
This is the name of the item you want to make usable and add the effects to
This is what you want to be
notified when you use the item
This is the effect of running faster
enabled: if the effect is enabled for the item or not. time: This is for how long the effect should last in seconds.
Gain a drunk effect
enabled: if the effect is enabled for the item or not. time: This is for how long the effect should last in seconds.
Gain an alien like visual effect
enabled: if the effect is enabled for the item or not. time: This is for how long the effect should last in seconds.
Relieve some stress
enabled: if the effect is enabled for the item or not. amount: how much stress to remove
Gain some health regen
enabled: if the effect is enabled for the item or not. time: This is for how long the effect should last in seconds. rate: How fast to regen health
Sets the player to ragdoll
enabled: if the effect is enabled for the item or not. time: This is for how long the effect should last in seconds.
Makes the player stumble when running
enabled: if the effect is enabled for the item or not. time: This is for how long the effect should last in seconds.
Relieve some thirst
enabled: if the effect is enabled for the item or not. amount: how much thirst to relieve
Relieve some hunger
enabled: if the effect is enabled for the item or not. amount: how much hunger to relieve
Gain more stamina so you can run longer
enabled: if the effect is enabled for the item or not. time: This is for how long the effect should last in seconds.
Makes the players screen shake
enabled: if the effect is enabled for the item or not.
time: This is for how long the effect should last in seconds.
CameraShakeType: what the type of camerashake you want, can be: 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: How intense the shake should be.
Adds a screen flashing effect to the players screen
enabled: if the effect is enabled for the item or not. time: This is for how long the effect should last in seconds.
Adds a custom visiual effect
enabled: if the effect is enabled for the item or not.
transition: How long the transition is for the effect to be at full strength in MS.
strength: How strong the effect should be. time: This is for how long the effect should last in MS.
Adds a status "effect" that police can inspect.
If the progressbar is enabled or not. if false then you can ignore the below settings
How long the progressbar should be
What to display in the progressbar text
This is the dictionary your animation is in
This is the animation
This is what is getting notified when the progressbar is done
This is what is getting notified when the progressbar fails
This disables the players movement (walking) while in the progressbar
This disables the ability to control the car
This disables the mouse movement (looking around)
This disables the the ability to be in combat (punch players etc)
If you want a prop or not
This is the name of the prop
Copy the above example and paste it underneath.
Edit all the variables to match for your item.
that's it.
effectName: The name of the custom effect (see more in ).
statusName: See time: This is for how long the effect should last in Seconds.
This is the id of the "bone" See this list of bones: