README
Visit our Discord / Homepage / Store !
Requirements / Dependencies
The following resources are required for nss_electric_chair
to work:
Changelog
See CHANGELOG.md for more information.
Features
Execution and torture system
Completely configurable:
Optional blackout effect on execution
Optional blackout effect across the map or only in the town of the execution
Optional chance to vomit during torture
Optional chance to burn after execution
Optional use of electric chair helmet
Optional restrictions to jobs for each electric chair
Place radius (for sound range)
Unlimited power levels (e.g. for different torture methods)
Optional power level damage
Configurable keys
Configurable object model hashes (e.g. if you want to use other models for the electric chair)
Volume of sounds (e.g. for generator startup/shutdwon, etc.)
Custom unique sounds
Language support
Optional ipl and ymap support
Optional Discord webhooks
Notice to died player that he/she is really dead ;)
And more...
Open ToDo's
Nothing ;)
Known issues
https://www.twitch.tv/videos/1803304163?t=03h30m12s
After relogging the player could not see generator sparks if the player spawns in range of the generator. After leaving and reentering the range the sparks are visible again.
If player sit on chair and log out nobody can use the chair anymore until the script restarts. See https://docs.fivem.net/docs/scripting-reference/events/list/playerDropped/
Blackout can cause game crashes for some players.
Setup script
Ensure that the
nss_electric_chair
folder is in yourresources
folder.Rename config.demo.lua to
config.lua
and fill in the values.Add
ensure nss_electric_chair
to yourserver.cfg
.Restart your server.
Optional: ipl
Tipp: It is always better to use game based objects (ipl's) instead of placing them via ymap.
Open file
[cfx-default]/[maps]/ipl/interiors.lua
and add if not exists or comment in the following ipl's:Saint Denise -
RequestImap(-2124415277)
Ensure that the coordinates of the ipl locations are added to the config file, too.
Restart your server.
Optional: ymap
You can use this electric_chair.ymap to place electric chairs to prepared locations in your map. The electric_chair_config.lua file contains the coordinates for the electric chairs for the script.
Extend
Config.Places
inconfig.lua
with wished entries from electric_chair_config.luaCopy the electric_chair.ymap file into
[cfx-default]/[maps]/maps/stream
folder.Restart your server.
FAQ
I can't hear the generator sounds
Ensure that Chrome is not muted in Windows volume mixer.
Can I use other props?
Yes, you can use other props. You have to change the model hash in the config file.
On deadly execution many players getting a game crash
On deadly execution blackouts appear. This can cause game crashes for some players. Disable the blackout effect in the config file and check if the game crashes are gone.
Last updated