Moin undzwar habe ich über ox_target ein ped hinzugefügt der auch spawnt und ich interagieren kann allerdings kommt die Notification nicht woran liegt das ?
Code
Config.Peds = {
{
model = `mp_m_securoguard_01`,
coords = vector4(342.57, -584.57, 43.31, 63.33),
networked = true,
invincible = true,
blockevents = false,
target = {
options = {
{
type = "client",
event = "ox_lib:notify",
icon = "fas fa-sign-in-alt",
label = "Sprechen",
targeticon = 'fas fa-example',
action = function(entity) -- This is the action it has to perform, this REPLACES the event and this is OPTIONAL
TriggerClientEvent('ox_lib:notify', source, data)
lib.notify({
title = 'Notification title',
description = 'Notification description',
position = 'bottom',
style = {
backgroundColor = '#141517',
color = '#C1C2C5',
['.description'] = {
color = '#909296'
}
},
icon = 'ban',
iconColor = '#C53030'
})
end,
},
},
distance = 2.5
}
}
}
Alles anzeigen