Replace default mugshot notifications

Notification shown when a using "talk to ped" action (notification with NPC face)

Event

AddEventHandler("missions_creator:internalMugshotNotify", function(ped, title, message)

end)

Parameters

NameData TypeDescription

ped

int

Ped entity handle

title

string

Title of the notification

message

string

Message of the notification

Example

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)

Where to insert the code?

You can place it in the file jaksam_core/config/cl_config.lua, at the bottom of the file on new lines

Last updated