Skip to content

Troubleshooting

Common Cuxial Announcements problems, with their cause and fix.

The most frequent problems after installing Cuxial Announcements, with the cause and the fix for each one.

The resource does not start

Cause. A dependency is missing or starts later than the script. Cuxial Announcements needs ox_lib, oxmysql and cuxial_bridge.

Fix. Start the dependencies first:

server.cfg
cfg
ensure ox_lib
ensure oxmysql
ensure cuxial_bridge
ensure cuxial_anuncios
/anuncio answers that the job has no announcement style

The notification reads Tu trabajo no tiene un estilo de anuncio configurado.

Cause. There is no style for the player's current job, or the style was saved with a different job name. The name is compared exactly, including upper and lower case.

Fix. Open the panel and create or edit the style. In the job field write the internal name of the job, for example police, not its label.

/crearanuncio answers that you have no permission

The notification reads No tienes permisos para usar este comando.

Cause. Your account does not have the permission set in adminPermission.

Fix. Give your account that permission in your framework, or change adminPermission in shared/config.lua to one you already have. On ESX the default 'admin' covers the groups admin and superadmin.

/anuncio asks the player to wait

Cause. The player sent an announcement less than cooldown seconds ago.

Fix. None needed. To shorten the wait, lower cooldown in shared/config.lua.

The announcement shows without logo or background

Cause. The image field holds a file name that is not in the resource, or a link that does not start with http:// or https://.

Fix. Put logos in web/build/images/icons/ and backgrounds in web/build/images/background/, write the file name with its extension, and restart the resource. For a link, use the full URL.

The announcement has no sound

Cause. The sound file is not in web/build/sounds/, the link is not reachable, or the volume of the style is 0.

Fix. Leave the sound field empty to use the default sound, or check the file name and the volume in the style. The panel has a button to test the sound.

The panel does not open, or announcements never appear

Cause. The interface is not loading. The folder web/build is missing or incomplete, usually after a partial upload.

Fix. Make sure web/build/index.html exists inside the resource. If it does not, copy the resource again from the original package and restart the server.

Styles are lost after a restart, or cannot be saved

Cause. The table cuxial_anuncios could not be created or read. The server console shows [CuxialAnuncios] error al cargar estilos desde la base de datos or an oxmysql error.

Fix. Check the oxmysql connection and that the database user can create tables. Then restart the resource.

An announcement appears late

Cause. Announcements are queued. Each one waits for the previous one to finish.

Fix. None needed. To shorten the queue, lower duration or raise cooldown.

© Cuxial