📱App News
PREVIEW
BUY THE SCRIPT
INSTALLATION
Configuration
Mis à jour
ConfigNewsApp = {
Framework = 'QBCore', -- ESX & QBCore
JobRequired = 'weazelnews',
['Settings'] = {
AuthorRequiredCharacters = 2, -- The number of the author of the publication must have at least (2 by default) characters to have his name written (otherwise it is written unknown)
ESX_StaffsLists = {'owner', 'admin'},
QBCore_StaffsLists = {'god', 'admin', 'mod'},
},
['Translate'] = {
-- Client Side
UnknownAuthor = "Inconnu",
-- Server Side
TimeAgoIfError = "Aucune information",
PostIdNotFound = "~r~Le post n'a pas était trouvé",
PostsDeleted = "~g~Article n°%s supprimé",
PostPublished = "~g~Article publié",
AppNotif_Title = "Nouvelle publication",
AppNotif_Description = "Le WeazelNews vient de publier un nouvel article.",
['TimeAgo'] = {
Instant = "Il y a quelques instants",
Minutes = "Il y a %s minute(s)",
Hours = "Il y a %s heure(s)",
Day = "Il y a %s jour(s)",
Months = "Il y a %s mois",
Years = "Il y a %s an(s)",
},
},
['ShowNotification'] = function(text) -- Notification type, depending on your framework or external script (Server notifications are forwarded here)
if ConfigNewsApp.Framework == 'ESX' then
TriggerEvent('esx:showNotification', text)
elseif ConfigNewsApp.Framework == 'QBCore' then
TriggerEvent('QBCore:Notify', text)
end
end,
}const Config = {
ColorDeleteArticle : "red", // lb-phone color (red, blue, green)
};
const Translate = {
UnableLoadImage : "Impossible de charger l'image.",
PublishedBy : "Publié par",
Like : "j'aime",
AlreadyLiked : "Vous avez déjà aimé cette article.",
LikeArticle : "Vous venez d'aimer cette article.",
DeleteThisArticle : "Supprimer cette article",
MustWriteTitle : "Veuillez au minimum écrire un titre à votre article afin de le publier.",
};