Wei Posted March 8, 2013 Posted March 8, 2013 -- SERVER addEvent("SaddNotification", true) function SaddNotificationHandler( text, red, green, blue, player ) triggerClientEvent("CaddNotification", player, text, red, green, blue ) end addEventHandler("SaddNotification", root, SaddNotificationHandler) -- CLIENT addEvent("CaddNotification", true) function troller( text, red, green, blue ) addNotification( text, red, green, blue ) end addEventHandler("CaddNotification", root, troller ) ERROR: Server triggered clientside event but event is not added client side. Diet with russian vodka, lose 3 days in one week !
PaiN^ Posted March 8, 2013 Posted March 8, 2013 -- SERVER addEvent("SaddNotification", true) function SaddNotificationHandler( text, red, green, blue, player ) triggerClientEvent("CaddNotification", root, text, red, green, blue ) end addEventHandler("SaddNotification", root, SaddNotificationHandler) " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
iPrestege Posted March 8, 2013 Posted March 8, 2013 -- SERVER addEvent("SaddNotification", true) addEventHandler("SaddNotification", root, function SaddNotificationHandler( text, red, green, blue,player) triggerClientEvent(player,"CaddNotification",text,player,red, green, blue ) end ) -- CLIENT addEvent("CaddNotification",true) addEventHandler("CaddNotification", root, function ( text, red, green, blue ) addNotification( text, red, green, blue ) end )
Renkon Posted March 8, 2013 Posted March 8, 2013 This happens because when you restart the resource, serverside may trigger before the client side isnt ready
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now