Oussema Posted March 14, 2017 Share Posted March 14, 2017 addEvent("requestRssDraw",true) addEventHandler("requestRssDraw",root,function(ss) if not ss then return end triggerClientEvent(client,"recriveRss",client,ss) end) addEvent("recriveRss",true) addEventHandler("recriveRss",root,function(thess) if thess then image = dxCreateTexture(thess) removeEventHandler("onClientRender", root, drawSS) addEventHandler("onClientRender", root, drawSS) end end) function drawSS() if image then dxDrawImage (176, 35, 1018, 701, image ) else removeEventHandler("onClientRender", root, drawSS) end end triggerServerEvent("requestRssDraw",localPlayer,imaged) the screenshot shows to all players pff what's problem guys ? Link to comment
3aGl3 Posted March 14, 2017 Share Posted March 14, 2017 I looks pretty ok to me, however you should use triggerLatentClientEvent( client,] "recriveRss", 50000, false, resourceRoot, ss ) And probably triggerLatentServerEvent for requesting the entire process. On the other hand I have no idea what you are trying to achieve with this, you could just show the image directly, without sending it to the server... 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