Hey. I’m coding a script, and I’m getting a really strange error. I’m just writing a simple script to add money with the console, that works, but I can’t send a notification, I don’t know why.
And I’m getting the error attempt to call a nil value (field 'showNotification'). Any idea why?
This is my fxmanifest.lua
fx_version 'adamant'
games { 'rdr3', 'gta5' }
rdr3_warning 'I acknowledge that this is a prerelease build of RedM, and I am aware my resources *will* become incompatible once RedM ships.'
server_scripts {
'@es_extended/locale.lua',
'server.lua'
}
It sends the money to the player, but it errors when it tries to send the notification, can’t figure out why. Thanks.
And I’m getting the error attempt to call a nil value (field 'showNotification') . Any idea why?
This is my fxmanifest.lua
fx_version 'adamant'
games { 'rdr3', 'gta5' }
rdr3_warning 'I acknowledge that this is a prerelease build of RedM, and I am aware my resources *will* become incompatible once RedM ships.'
server_scripts {
'@es_extended/locale.lua',
'server.lua'
}