Inicio › Documentación › Instalación · origen_radio
ensure origen_radiopma-voice y oxmysql deben arrancar antes que origen_radio. Coloca origen_radio después de ambos en tu server.cfg.
Ejecuta el siguiente SQL en tu base de datos antes de arrancar el recurso por primera vez.
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;La tabla origen_metadata solo es necesaria si Config.MetadataSystem está en true en config/main.lua.
Si Config.NeedRadioItem es true (por defecto), los jugadores deben llevar uno de los objetos de Config.RadioItems para abrir la interfaz de la radio. Asegúrate de que esos objetos existen en tu recurso de inventario.
El objeto por defecto es radio. Añádelo a tu inventario si aún no está.