stevensalvaro Posted March 1, 2016 Share Posted March 1, 2016 Hello , I Want to make my own theatre or TV script , How can i draw my video.mp4 files on GTA World ? What function i need to make this script ? Link to comment
Mann56 Posted March 1, 2016 Share Posted March 1, 2016 Use dxDrawMaterialLine3D to draw a screen like for theatre, you can screen your video there To get a video from internet try the browser functions... Link to comment
stevensalvaro Posted March 1, 2016 Author Share Posted March 1, 2016 but how to load the video ? may i use dxCreateTexture ? Link to comment
Mann56 Posted March 1, 2016 Share Posted March 1, 2016 Yes you can use textures to create the video on the screen, if you are getting video from internet you can make a browser and put it in the Dx Material Line... Link to comment
stevensalvaro Posted March 1, 2016 Author Share Posted March 1, 2016 How to set the image resolution ? I got this Link to comment
stevensalvaro Posted March 1, 2016 Author Share Posted March 1, 2016 if i move the camera , why the image rotating too ? how to disable rotating ? Link to comment
Mann56 Posted March 1, 2016 Share Posted March 1, 2016 How to set the image resolution ? I got this You mean the resolution of the material line? Just set the start and end cords they are vertical though , starting x,y and z is the upper position and ending ones are at the bottom. If i got the question wrong, you can explain it once more. Also make sure the material you are drawing the line with exists, since you are getting that error. EDIT : Did you read this? faceTowardX/Y/Z: The position the front of the line should face towards. If this is not set, the camera position is used, so the front of the line faces toward the camera. set a cord where the screen will force at, if not specified it will move according to the camera. Link to comment
stevensalvaro Posted March 1, 2016 Author Share Posted March 1, 2016 here is my script , so what to do about face toward to stop rotating ? What should i add on the line of this script ? local img = dxCreateTexture( "images/bstatus.png" ) addEventHandler("onClientRender", root, function() -- x,y,z, targetx,targety,targetz,texture,width,color dxDrawMaterialLine3D (1757.3798828125, -1665.0810546875, 20.4108648300173,1756.3798828125, -1665.0810546875, 16,img, 2, tocolor(255,255,255,255)) end) Link to comment
Mann56 Posted March 1, 2016 Share Posted March 1, 2016 here is my script , so what to do about face toward to stop rotating ? What should i add on the line of this script ? local img = dxCreateTexture( "images/bstatus.png" ) addEventHandler("onClientRender", root, function() -- x,y,z, targetx,targety,targetz,texture,width,color dxDrawMaterialLine3D (1757.3798828125, -1665.0810546875, 20.4108648300173,1756.3798828125, -1665.0810546875, 16,img, 2, tocolor(255,255,255,255)) end) local img = dxCreateTexture( "images/bstatus.png" ) addEventHandler("onClientRender", root, function() -- x,y,z, targetx,targety,targetz,texture,width,color dxDrawMaterialLine3D (1757.3798828125, -1665.0810546875, 20.4108648300173,1756.3798828125, -1665.0810546875, 16,img, 2, tocolor(255,255,255,255),posX,posY,posZ )-- the camera will always face these cords end) Link to comment
stevensalvaro Posted March 1, 2016 Author Share Posted March 1, 2016 it's say front position must face toward , but i can't see 'rotation' on this function , just x,y,z Link to comment
Mann56 Posted March 1, 2016 Share Posted March 1, 2016 Well if you don't mention the faceto arguments the front will be faced to your camera so everytime you move your camera or move yourself it will rotate as well, give in the cords i showed you in the code above and the thing should just face it and not rotate. Rotation is due to movement of your camera. Link to comment
stevensalvaro Posted March 1, 2016 Author Share Posted March 1, 2016 so what should i do now ? Link to comment
Mann56 Posted March 1, 2016 Share Posted March 1, 2016 As i told you earlier, local img = dxCreateTexture( "images/bstatus.png" ) addEventHandler("onClientRender", root, function() -- x,y,z, targetx,targety,targetz,texture,width,color dxDrawMaterialLine3D (1757.3798828125, -1665.0810546875, 20.4108648300173,1756.3798828125, -1665.0810546875, 16,img, 2, tocolor(255,255,255,255),posX,posY,posZ )-- the camera will always face these cords end) posX,posY,posZ Enter that cord there at which your Material Line will face. That will work. Link to comment
stevensalvaro Posted March 1, 2016 Author Share Posted March 1, 2016 ah thank you so much , it's working fine now :) ,, btw can i play video with 'dxCreateTexture' function ? Link to comment
Mann56 Posted March 1, 2016 Share Posted March 1, 2016 ah thank you so much , it's working fine now :) ,, btw can i play video with 'dxCreateTexture' function ? Glad it helped Yes you can try texture , but i recommend a browser if you are going to play from internet(like most guys do). Link to comment
stevensalvaro Posted March 1, 2016 Author Share Posted March 1, 2016 what format does mta support for the video ? mp4 ? Link to comment
Mann56 Posted March 1, 2016 Share Posted March 1, 2016 what format does mta support for the video ? mp4 ? Well , i think textures don't support videos, you must try shaders, and i have no knowledge of HLSL.... Link to comment
stevensalvaro Posted March 1, 2016 Author Share Posted March 1, 2016 okay , thank you for your help and your information 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