Skip to content

Installation

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

Installation steps

1
Download the resource
Download prp-point-control 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-point-control
3
Add items
Add all required items to your inventory resource — see Items below.
4
Configure
Configure starting NPC locations, capture speeds, match settings, and loot in config/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-point-control 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
['point_control_contract'] = {
    label = 'Point Control Contract',
    weight = 10,
    stack = false,
},
['point_control_crate'] = {
    label = 'Capture Crate',
    weight = 500,
    stack = false,
},
['point_control_plans'] = {
    label = 'Point Control Plans',
    weight = 10,
    stack = false,
},
['point_control_map'] = {
    label = 'Map with Drop Points',
    weight = 10,
    stack = false,
},

INFO

Item names can be changed in config/config.lua under Config.Items, Config.Mission.startItem, Config.ConvertPed.requiredItem, Config.ConvertPed.rewardItem, and Config.TurnOnMission.requiredItem.

Admin Commands

CommandPermissionDescription
/startrace [playerid]group.adminImmediately starts a match between yourself and the target player, bypassing the queue

The command name is configurable via Config.TestingCommand.command in config/config.lua. Set Config.TestingCommand.enabled to false to disable it entirely.