modey2013 Posted July 29, 2015 Share Posted July 29, 2015 how to add a video to the map like this Link to comment
GTX Posted July 29, 2015 Share Posted July 29, 2015 There's a resource which does that. It's called visualiser. If you want to play a YouTube video or something, use createBrowser Link to comment
TheSmart Posted July 29, 2015 Share Posted July 29, 2015 local Width, Height = guiGetScreenSize() local webBrowser = createBrowser(Width, Height, false, false) addCommandHandler("youtube", function() loadBrowserURL(webBrowser, "https://www.youtube.com/watch?v=kdemFfbS5H0") addEventHandler("onClientRender", root, function() local x, y = 110.7, 1024.15 dxDrawMaterialLine3D(x, y, 23.25, x, y, 14.75, webBrowser, 18.2, tocolor(255, 255, 255, 255), x, y+1, 19) end ) end ) Link to comment
modey2013 Posted July 29, 2015 Author Share Posted July 29, 2015 local Width, Height = guiGetScreenSize() local webBrowser = createBrowser(Width, Height, false, false) addCommandHandler("youtube", function() loadBrowserURL(webBrowser, "https://www.youtube.com/watch?v=kdemFfbS5H0") addEventHandler("onClientRender", root, function() local x, y = 110.7, 1024.15 dxDrawMaterialLine3D(x, y, 23.25, x, y, 14.75, webBrowser, 18.2, tocolor(255, 255, 255, 255), x, y+1, 19) end ) end ) could you plz upload for me the full script .zip 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