good old google, yeah that is the only way i can fall accidentally on the answer around here … and most moderator here use the answer “did you try the search engine before posting” … a lot! since some people think everything is easy to mash together and are generally lazy in their research… tell me how now!! and be quick about it!

I started my 40+ ressources esx server about a week ago… and with google was about to change my interface, get rid of the black money, add cops, add nitro to my own code (need to interface with the fuel mod to burn more fuel instead of buying a “nitro” at the store) i had codded a VRP 4-5 years ago and it was not the same game at all… i am way more advance now in way less time.

Yeah, sometimes forming an efficient question takes a lot, but this is where a really good documentation can help, because that tells you what you need, which makes your life so much easier. The current documentation is okay-ish, I can find my way around it, but it could definitely be improved.

I’m kind of a freak in this thing, I don’t like to implement resources written by someone else. I know, that I shouldn’t be “inventing the wheel” again, but I like to get ideas from those resources, and build my own. Probably this comes from a habit, where we wanted our MTA server to be “unique”, so every single resource was done by us (2-3 devs), and people liked it, 4-500 players on peak times.

This is where im at… F9 work, F10 tries…

server \ main.lua

RegisterServerEvent('esx_burn:testMsg')
AddEventHandler('esx_burn:testMsg', 
	function()
		TriggerClientEvent('esx_burn:MsgPlaya', -1, 'Unknown', 'Ill kill you motherfucker!!', 'msg msg you dead homey', 'CHAR_LESTER_DEATHWISH', 9)
	end
)

Client \ main.lua

RegisterNetEvent('esx_burn:MsgPlaya')
AddEventHandler('esx_burn:MsgPlaya', function(title, subject, msg, icon, iconType)
	print('esx_burn:MsgPlaya == BEGIN') -- debug

    SetNotificationTextEntry('STRING')
    AddTextComponentSubstringPlayerName(msg)
    SetNotificationMessage(icon, icon, false, iconType, title, subject)
    DrawNotification(false, false)

	print('esx_burn:MsgPlaya == FINISHED') -- debug
end)

Citizen.CreateThread(function() 
	while true do
		if IsControlJustPressed(0, Keys['F9']) then	-- F9
			print('F9 pressed!') --debug
		elseif IsControlJustPressed(0, Keys['F10']) then -- F10
			print('F10 pressed!') --debug
			TriggerServerEvent('esx_burn:testMsg') 
		end		
		------------------------------------------------------------------		
		Citizen.Wait(0)
	end
end)

F10 start esx_burn:MsgPlaya
Now i got an attempt to call a nil value (global ‘AddTextComponentSubstringPlayerName’)

There seem to be old native and new native, or old vs new information about some function and the use of it… from 2016-17 to today exemple dont matchs sometimes… or im too high…

The damn paycheck notification is exactly what i try to do! Its laughing at me with a welfaire check everytime i try to make mine!

Took me the rest of the day cursing god and lucifer! at the end everything work… i can generate my advance notification from within my code… lua language is picky as hell… took hours to find forgotten “;” and small anoyance in my code… im learning! thank you to the community and par4doxon!

https://i.imgur.com/2c03u30.jpg