Replace default mugshot notifications
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
Notification shown when a using "talk to ped" action (notification with NPC face)
AddEventHandler("missions_creator:internalMugshotNotify", function(ped, title, message)
end)
ped
int
Ped entity handle
title
string
Title of the notification
message
string
Message of the notification
RegisterNetEvent("missions_creator:framework:ready", function()
-- Disables the default script notification (otherwise there would be 2 notifications)
exports["missions_creator"]:disableScriptEvent("missions_creator:internalMugshotNotify")
end)
RegisterNetEvent("missions_creator:internalMugshotNotify", function(ped, title, message)
TriggerEvent("external_script:notify", message)
end)
You can place it in the file jaksam_core/config/cl_config.lua
, at the bottom of the file on new lines