Installation
This guide will walk you through installing prp-horde on your FiveM server.
Installation steps
prp-horde from the CFX portal and place it in your resources folder.server.cfg. ensure oxmysql
ensure ox_lib
ensure prp-bridge
ensure prp-hordeconfig/general.lua to configure admin commands and debug mode. Set config.debug to false before going live.config/sv_config.lua.installation/inventory icons folder. Copy them to your inventory resource's image directory if you'd like to use them.Database
The resource automatically creates the required tables on startup. No manual table creation is needed.
Run the seed SQL files to populate the default Syndicate interior with spawn points and loot stash positions:
sql/spawns.sql - enemy NPC spawn positions for the Syndicate interior
sql/stashes.sql - loot drop stash positions for the Syndicate interiorImport these files into your database using your preferred MySQL client or tool:
mysql -u root -p your_database < sql/spawns.sql
mysql -u root -p your_database < sql/stashes.sqlTIP
You can skip the seed SQL if you intend to place all spawn points and stashes yourself using the in-game admin editor (/hordeadmin).
Items
Add all required items to your inventory resource using the format appropriate for your setup.
Add the items below to your ox_inventory into data/items.lua.
['horde_revive'] = {
label = 'Horde Health Token',
weight = 100
},
['horde_crate_key'] = {
label = 'Horde Crate Key',
weight = 100
},
['horde_small'] = {
label = "Horde Small Item",
weight = 5
},
['horde_medium'] = {
label = "Horde Medium Item",
weight = 8
},
['horde_big'] = {
label = "Horde Big Item",
weight = 10
},INFO
| Item | Purpose |
|---|---|
horde_small / horde_medium / horde_big | Ground loot crates spawned during the looting phase. Players pick them up and deposit them into the center chest to earn currency (svConfig.groundItemCurrency). |
horde_crate_key | Opens locked hard-mode crates. |
horde_revive | Consumed when reviving a downed teammate. |
These items must be registered in your inventory resource. If they are missing, ground loot pickups will fail and deposits will not award currency.