Problems with TriggerClientEvent

Client

RegisterNetEvent('up')

AddEventHandler('up',function()
	print("sucessfully passed")
end)

Server

if message:sub(2) == 'up' then
        	print("^6Going up!")
        	TriggerClientEvent('up', source)

The server print goes through by the way, however the client side print is not.

AddEventHandler('up', function()

I copied that and replaced what I have and still nothing changed

RegisterNetEvent('up')
AddEventHandler('up', function()
        TriggerEvent('chatMessage', "", {204, 204, 0}, "sucessfully passed")
end)

Try send a notification or a chatmessage instead of a print :stuck_out_tongue_winking_eye:

still no luck…cant figure it out

Strange, you are probably messing in something else…

Try doing -1 instead of source. This is just to see if its an issue with source or the actual code.

1 Like

and…thats the problem! it was set to pid not source