syn0nym Posted March 6, 2022 Posted March 6, 2022 Hello thanks for clicking this topic. so i have a problem when i code, i want to make a dxDrawTest and a blurred background using setCameraMatrix and dgsCreateBlurBox, when i run my code the text is not showing, but when i clear the dgsCreateBlurBox, the text is showing, so my question is how to make the text visible with the dgsCreateBlurBox Here my code local sW, sH = guiGetScreenSize( ) local blurbox = dgsCreateBlurBox(sW, sH) local blurArea = dgsCreateImage(0,0,1,1,blurbox,true) function Text ( ) setCameraMatrix(1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) dxDrawText ( "Test", 44, sH - 43, sW, sH, tocolor ( 255, 255, 255, 255 ), 1, "pricedown" ) end function Render ( ) addEventHandler ( "onClientRender", root, Text ) end dgsSetLayer(blurArea, "bottom") showCursor(true) addEventHandler ( "onClientResourceStart", resourceRoot, Render )
Scripting Moderators thisdp Posted March 8, 2022 Scripting Moderators Posted March 8, 2022 why not use dgsCreateLabel? 1
iNawaF Posted March 8, 2022 Posted March 8, 2022 (edited) use dgsCreateLabel - Multi Theft Auto: Wiki dgsCreateLabel Edited March 8, 2022 by iNawaF 1
syn0nym Posted March 12, 2022 Author Posted March 12, 2022 On 08/03/2022 at 22:37, thisdp said: why not use dgsCreateLabel? I've been try using a dgsCreateLabel, but when i use a wordBreak property it doesn't work. here my code local window = dgsCreateWindow ( 440 , 160 , 400 , 300 , "" , false) local label = dgsCreateLabel ( 20 , 10 , 300 , 100 , "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.", false , window) dgsSetProperty (label , "wordBreak" , true)
Scripting Moderators xLive Posted March 12, 2022 Scripting Moderators Posted March 12, 2022 (edited) It's working fine for me: Please make sure you're using the latest version of DGS 3.515. You can find out which version you're using with /dgsver. you can then update it using /updatedgs or download it manually from here. Edited March 12, 2022 by xLive 2
syn0nym Posted March 12, 2022 Author Posted March 12, 2022 14 minutes ago, xLive said: It's working fine for me: Please make sure you're using the latest version of DGS 3.515. You can find out which version you're using with /dgsver. you can then update it using /updatedgs or download it manually from here. Thanks you for helping 1
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