Installation · origen_radio
1. Add to server.cfg
text
ensure origen_radiopma-voice and oxmysql must be started before origen_radio. Place origen_radio after both of them in your server.cfg.
2. Import SQL
Run the following SQL on your database before starting the resource for the first time.
sql
CREATE TABLE `origen_radio` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`citizenid` VARCHAR(200) NOT NULL COLLATE 'utf8mb4_general_ci',
`categories` LONGTEXT NOT NULL COLLATE 'latin1_swedish_ci',
PRIMARY KEY (`citizenid`) USING BTREE,
INDEX `id` (`id`) USING BTREE
)
COLLATE='latin1_swedish_ci'
ENGINE=InnoDB;
CREATE TABLE `origen_radio_freqs` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`owner` VARCHAR(200) NOT NULL DEFAULT '' COLLATE 'latin1_swedish_ci',
`category` VARCHAR(50) NOT NULL DEFAULT '0' COLLATE 'latin1_swedish_ci',
`freqs` LONGTEXT NOT NULL COLLATE 'latin1_swedish_ci',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `owner` (`owner`)
)
COLLATE='latin1_swedish_ci'
ENGINE=InnoDB;
CREATE TABLE IF NOT EXISTS `origen_metadata` (
`id` varchar(255) NOT NULL DEFAULT '',
`data` longtext DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;The origen_metadata table is only required if Config.MetadataSystem is set to true in config/main.lua.
3. Configure radio items
If Config.NeedRadioItem is true (default), players must carry one of the items listed in Config.RadioItems to open the radio interface. Make sure those items exist in your inventory resource.
The default item is radio. Add it to your inventory if it is not already present.