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
The horde_small, horde_medium, and horde_big items represent loot dropped from crates and bodies. Their actual contents (weapons, ammo, components etc.) are configured in config/sv_config.lua.