r_slasher Installation
Install r_slasher: download it from the Cfx.re Portal, add the candy item and ensure it after ox_lib, oxmysql and ESX, QBCore or QBX.
Prerequisites
- ox_lib
- oxmysql
- ESX, QBCore or QBX
- Optional: ox_target or qb-target, pma-voice (survivor voice), trase_discord or Badger_Discord_API (leaderboard pictures)
Installation Steps
Download & Extract
- Download R_Slasher from your Cfx.re Portal
- Extract the folder into your server's
resourcesdirectory - Make sure the folder is named exactly
r_slasher
r_slasher
bridgeopen: prompt, progress bar and custom target
- cl_progress.luaR.Progress = 'custom'
- cl_target.luaR.Target = 'custom'
- cl_textui.luaR.TextUI = 'custom'
client
- cl_custom.luavoice, revives, outfits, hooks
installcandy item and image
localesen, fi
server
- sv_custom.luaDiscord webhooks, hooks
shared
- config.luaevery setting
- config_halloween.luacity events, candy shop
- config_maps.luamaps and spots
sqlonly if you import it yourself
streampodium and reboot card props
webthe built UI, no need to touch
- fxmanifest.lua
Add the candy item
Halloween candy is a normal item called r_candy. Add it to your inventory and copy
install/r_candy.png into its image folder. For ox_inventory, in ox_inventory/data/items.lua:
['r_candy'] = {
label = 'Candy',
weight = 10,
stack = true,
close = true,
description = 'Halloween candy. Trade it at the Slasher Night stand.'
},install/items.md has the QBCore and ESX versions.
Add to server.cfg
Put it after ox_lib, oxmysql, your framework, target and pma-voice:
ensure ox_lib
ensure oxmysql
ensure qbx_core
ensure ox_target
ensure pma-voice
ensure r_slasherAdmins (R.AdminGroup) can open the hub anywhere with /slasheradmin and remove any lobby:
add_ace group.admin command.slasheradmin allowLanguage (optional, default English):
setr ox:locale "en" # en | fiDiscord logs (optional)
Paste your webhooks into Webhooks at the top of server/sv_custom.lua (lobby, round,
admin). Empty ones are skipped.
Restart & connect
Restart your server, or start the script from the server console. The tables are created on first start.
Go to the Slasher Night NPC (map blip Slasher Night), open the hub and join a lobby. A round needs two players.
Updates
The console tells you when a new version is out. Download it from the Cfx.re Portal and replace the
folder, keeping your shared/ configs, bridge/, client/cl_custom.lua, server/sv_custom.lua
and locales.
Keep the folder name r_slasher and don't change author in fxmanifest.lua, or the update
check stops.