Skip to Content

Config

All Prism Scripts contain various editable and unobscured files containing, exports, client
and server functions, configuration methods and more.

Config

config.lua
CFG = { Framework = "auto", -- "auto", "esx", "qb", "qbox" Locale = "en", -- Language= en, es, fr, de, pt, ru Debug = false, DelayHudStats = 1500, DelayHudVehicle = 350, TotalSlots = 10, BaseConfiguration = { logo_info_position= { x= 0, y= 0 }, keybind_position= { x= 0, y= 0 }, notification_position= { x= 0, y= 0 }, streetinfo_position= { x= 0, y= 0 }, statshud_postion= { x= 0, y= 0 }, vehiclehud_position= { x= 0, y= 0 }, minimap_position= { x=0, y=0}, PrimaryColor= "#BEEE11", SecondaryColor= "#FFFFFF", SuccessColor= "#48FF9B", ErrorColor= "#F22933", HealthColor = "#FFFFFF", ArmorColor = "#FFFFFF", HungerColor = "#FFFFFF", ThirstColor = "#FFFFFF", StaminaColor = "#FFFFFF", minimap= "Show", --Show/Only Car/Hide hudTheme= "Main", --Main/Second mapForm = "Rectangular" --Rectangular/Circle }, Seatbelt = { Enable = false, Key = "B", Sound = true }, GestionElements={ health=true, armor=true, stamina=true, voice=true, hunger=true, thirst=true, job=false, players=false, position=true, id = true, name = true, logo=true, date=false }, BlacklistCarHud = { "bmx", }, EnableSettings = true, CommandSettings = "hud", ToggleHud = true, ToggleHudCommand = "togglehud", RemoveMinimap_HudHide = true, }

Integration

ox_lib

notify.lua
--[[ https://github.com/overextended/ox_lib This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html> Copyright © 2025 Linden <https://github.com/thelindat> ]] ---@alias NotificationPosition 'top' | 'top-right' | 'top-left' | 'bottom' | 'bottom-right' | 'bottom-left' | 'center-right' | 'center-left' ---@alias NotificationType 'info' | 'warning' | 'success' | 'error' ---@alias IconAnimationType 'spin' | 'spinPulse' | 'spinReverse' | 'pulse' | 'beat' | 'fade' | 'beatFade' | 'bounce' | 'shake' ---@class NotifyProps ---@field id? string ---@field title? string ---@field description? string ---@field duration? number ---@field showDuration? boolean ---@field position? NotificationPosition ---@field type? NotificationType ---@field style? { [string]: any } ---@field icon? string | { [1]: IconProp, [2]: string } ---@field iconAnimation? IconAnimationType ---@field iconColor? string ---@field alignIcon? 'top' | 'center' ---@field sound? { bank?: string, set: string, name: string } local settings = require 'resource.settings' ---`client` ---@param data NotifyProps ---@diagnostic disable-next-line: duplicate-set-field function lib.notify(data) if data then return exports.prism_hud:prism_Notification_show({ msg = (data.title or "") .. " " .. data.description, type = data.type or "info", time = data.duration or 5000, }) end --[[local sound = settings.notification_audio and data.sound data.sound = nil data.position = data.position or settings.notification_position SendNUIMessage({ action = 'notify', data = data }) if not sound then return end if sound.bank then lib.requestAudioBank(sound.bank) end local soundId = GetSoundId() PlaySoundFrontend(soundId, sound.name, sound.set, true) ReleaseSoundId(soundId) if sound.bank then ReleaseNamedScriptAudioBank(sound.bank) end--]] end ---@class DefaultNotifyProps ---@field title? string ---@field description? string ---@field duration? number ---@field position? NotificationPosition ---@field status? 'info' | 'warning' | 'success' | 'error' ---@field id? number ---@param data DefaultNotifyProps function lib.defaultNotify(data) -- Backwards compat for v3 data.type = data.status if data.type == 'inform' then data.type = 'info' end return lib.notify(data --[[@as NotifyProps]]) end RegisterNetEvent('ox_lib:notify', lib.notify) RegisterNetEvent('ox_lib:defaultNotify', lib.defaultNotify)
Last updated on