Jump to content

Help on DirectX Drawing - SOLVED, CLOSE PLEASE


12p

Recommended Posts

Posted (edited)

hello there, it's me again. I just want to know, there is some way to change a "DirectX" text? I want to do some kind of cutscene, and use DirectX as the storyteller. But I dunno if there is some way to change its text, or just use another DirectX text...

Edited by Guest
Posted

whaaat?

i dont know what you mean.

maybe attach some code to your post?

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

I dont know HOW and WHAT are you trying to change?

You are talking about dxDrawText? Then notice - it's first argument is string with text to display. What is so hard?

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

yes. dxDrawText is a DX Text. But I want to show it, then fade it out, change its text content, and fade it in. There is some way to change the text content of a DX Text?

Posted
  
mytext = "first text" 
alpha=255 
addEventHandler("onClientRender", getRootElement(), function() 
if (alpha>0) then alpha=alpha-1 end 
dxDrawText(mytext, 0, 0, 0, 0, tocolor(255,255,255,alpha)) 
end) 
setTimer(function() 
mytext = "2nd text" 
end, 1000, 1) 
  

now do whatever you want with it.

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...