Problems with TriggerClientEvent


#1

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.


#2

AddEventHandler('up', function()


#3

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


#4
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:


#5

still no luck…cant figure it out


#6

Strange, you are probably messing in something else…


#7

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


#8

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