Speak Posted October 28, 2013 Share Posted October 28, 2013 (edited) solved Edited October 30, 2013 by Guest Link to comment
Castillo Posted October 28, 2013 Share Posted October 28, 2013 Wiki quote: Note: Client side function only works with the server the player is connected to Link to comment
Speak Posted October 28, 2013 Author Share Posted October 28, 2013 Wiki quote:Note: Client side function only works with the server the player is connected to can not be executed on the client? Link to comment
Dealman Posted October 28, 2013 Share Posted October 28, 2013 I believe it means if you're trying to use it client-side, you can only download files that are server-side. So, you'd need to put the image in the server-side version of the resource. Link to comment
Speak Posted October 29, 2013 Author Share Posted October 29, 2013 (edited) solved Edited October 30, 2013 by Guest Link to comment
Dealman Posted October 29, 2013 Share Posted October 29, 2013 Then I'm not sure, haven't worked with fetchRemote. I'll let Solidsnake14 work his magic Link to comment
Speak Posted October 29, 2013 Author Share Posted October 29, 2013 Then I'm not sure, haven't worked with fetchRemote. I'll let Solidsnake14 work his magic anyway thanks. I expect more answers Link to comment
Renkon Posted October 29, 2013 Share Posted October 29, 2013 Was the .PNG image created successfully? Link to comment
Speak Posted October 29, 2013 Author Share Posted October 29, 2013 Was the .PNG image created successfully? the image does not appear has no more errors Link to comment
Renkon Posted October 29, 2013 Share Posted October 29, 2013 addEventHandler ( "onClientGotImage", resourceRoot, Change to addEventHandler ( "onClientGotImage", root, Link to comment
Renkon Posted October 29, 2013 Share Posted October 29, 2013 Is the .PNG file created in the resource directory? Link to comment
Castillo Posted October 29, 2013 Share Posted October 29, 2013 The problem is that he's using 'source' in triggerClientEvent ( if I'm right ). function startImageDownload ( ) fetchRemote ( "http://www.xn--fischspezialitten-knobloch-thc.de/wp-content/uploads/2010/05/ice.png", myCallback, "", false ) outputChatBox ( "oi" ) end addEventHandler ( "onResourceStart", root, startImageDownload ) function myCallback ( responseData, errno ) if ( errno == 0 ) then triggerClientEvent ( root, "onClientGotImage", root, responseData ) end end Try it. Link to comment
Renkon Posted October 29, 2013 Share Posted October 29, 2013 Actually, what you posted would go for everybody. I did realize he's using playerToReceive which is a resource and not a player. Simple solution would be to set that variable into a player Link to comment
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