Installation
This guide will walk you through installing prp-seabattle on your FiveM server.
Installation steps
1
Download the resource
Download
prp-seabattle from the CFX portal and place it in your resources folder.2
Add to server.cfg
Add the resource to your
server.cfg. ensure ox_lib
ensure prp-bridge
ensure prp-seabattle3
Add items
Add all required items to your inventory resource — see Items below.
4
Configure
Configure the starting NPC location, boat models, guard settings, loot tables, and delivery/buoy positions in
config.lua.5
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
prp-seabattle does not require any database setup. No tables need to be created or seeded.
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
['seabattle_start'] = {
label = 'Sea Battle Pass',
weight = 10,
stack = false,
},
['sb_boat_rope'] = {
label = 'Rope',
weight = 100,
stack = false,
},INFO
The sb_boat_rope item is automatically given to the player by the boat NPC at the start of Stage 2. Players do not need to obtain it separately - it just needs to exist in your inventory resource.