Skip to content

Frontier Wire — Installation ​

Dependencies ​

Resource or serviceRequiredNotes
RedM server with OneSyncYesThe manifest declares /onesync
oxmysqlYesMariaDB or MySQL with InnoDB FULLTEXT
vorp_coreYesThe included framework adapter
vorp_inventoryYesThe included inventory adapter

No other library is needed: no ox_lib, no jo_libs. The database account needs CREATE, SELECT, INSERT and UPDATE.

Lua 5.4

The manifest sets lua54 'yes'. Do not remove it; the resource does not run on Lua 5.1.

Package contents ​

text
[INSTALL_ME_FIRST]/
  items.sql
  images/frontier_mailbox_paper.png
  images/frontier_mailbox_bird.png
  images/frontier_mailbox_sealed.png
  images/frontier_mailbox_received.png

1. Install the resource ​

Put the folder in your resources and keep its exact name:

text
resources/[frontier-forge]/frontier_mailbox/

Events, exports, NUI addresses and items are built on the name frontier_mailbox. A renamed folder prints a red warning in the server console every three seconds.

2. Import the items ​

Import [INSTALL_ME_FIRST]/items.sql into your VORP database. It adds four rows to the items table and keeps existing ones.

Item nameLabelUsed for
frontier_mailbox_paperBlank telegramWrite and seal a telegram anywhere
frontier_mailbox_birdCarrier birdWrite and send a telegram by bird (one bird, one telegram)
frontier_mailbox_sealedSealed telegramA written, sealed telegram; post it at any post office
frontier_mailbox_receivedReceived telegramA letter taken from a bird; use it to read it again

The item names can be changed in Config.Items; rename the rows in items and the pictures to match.

3. Copy the pictures ​

Copy the four PNG files from [INSTALL_ME_FIRST]/images/ into:

text
vorp_inventory/html/img/items/

Then restart vorp_inventory so it loads the new items.

4. server.cfg ​

Start the Frontier Forge folder after its dependencies:

cfg
ensure oxmysql
ensure vorp_core
ensure vorp_inventory
ensure [frontier-forge]

For admin access, run /frontier_mailbox in game. Without permission it shows a ready add_ace line with your own identifier; copy that line into server.cfg (or run it in the console).

5. Automatic SQL ​

No manual SQL is needed for the resource's own data. On start it creates its eleven tables with CREATE TABLE IF NOT EXISTS. It never alters or drops a table.

The console prints this when everything started correctly:

text
[frontier_mailbox] Postal service ready: vorp / vorp

or STARTUP FAILED: <reason> when something is missing. See Common Errors.

6. Create your first post office ​

  1. In game, type /frontier_mailbox and open Stations → New station.
  2. Enter a name and town and pick a clerk model.
  3. Place the clerk: the screen hides and a hint panel explains the keys. Stand where the clerk should stand, face the way they should look and press Enter (Escape cancels). The clerk needs a real floor under them.
  4. Set the radius, postage, delivery time and who may use the office, then save.
  5. Walk up to the clerk and hold E to open the post office as a player.

7. Test ​

  1. Buy a blank telegram and a carrier bird under Supplies.
  2. Write a telegram to your own address, seal it and post it at the counter.
  3. Send a second one by carrier bird and take it from the bird with hold E.
  4. Enclose a small amount of cash and one item, and collect them as the addressee.

Continue with Configuration.

Frontier Forge — RedM documentation for VORP.