Skip to content

Installation

This guide will walk you through installing prp-horde on your FiveM server.

Installation steps

1
Download the resource
Download prp-horde from the CFX portal and place it in your resources folder.
2
Add to server.cfg
Add the resource to your server.cfg.
ensure oxmysql
ensure ox_lib
ensure prp-bridge
ensure prp-horde
3
Import SQL seed
Import the SQL seed data — see Database below.
4
Add items
Add all required items to your inventory resource — see Items below.
5
Configure general.lua
Open config/general.lua to configure admin commands and debug mode. Set config.debug to false before going live.
6
Configure sv_config.lua
Configure interiors and game settings in config/sv_config.lua.
7
Optional: inventory icons
Custom inventory icons are included in the 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 interior

Import these files into your database using your preferred MySQL client or tool:

bash
mysql -u root -p your_database < sql/spawns.sql
mysql -u root -p your_database < sql/stashes.sql

TIP

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.

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.