Jump to content

GhostMode Letter


Klesh

Recommended Posts

Posted

Hi all comunity, i need help in ghostmode vote, i want the size letters small because the current size are too big.

Help And Thnx.

local sx, sy = guiGetScreenSize() 
  
function GMStart() 
addEventHandler("onClientRender",getRootElement(),GmDefaultText) 
end 
addEvent("onGMStart",true) 
addEventHandler("onGMStart",getRootElement(),GMStart) 
  
function GMStop() 
removeEventHandler("onClientRender",getRootElement(),GmDefaultText) 
end 
addEvent("onGMStop",true) 
addEventHandler("onGMStop",getRootElement(),GMStop) 
  
function GmDefaultText() 
dxDrawText("PRESIONA G PARA VOTAR GHOSTMODE ",0,(567/900)*sy,(1436/1440)*sx,(669/900)*sy,tocolor(0,0,0,255),2.0,"bankgothic","center","center",false,false,false) 
dxDrawText("PRESIONA G PARA VOTAR GHOSTMODE",(3/1440)*sx,(570/900)*sy,(1439/1440)*sx,(672/900)*sy,tocolor(255,255,255,255),2.0,"bankgothic","center","center",false,false,false) 
dxDrawText(votecount.."/"..reqPlayers.." VOTOS RECIVIDOS",(2/1440)*sx,(633/900)*sy,(1430/1440)*sx,(707/900)*sy,tocolor(0,0,0,255),1.5,"bankgothic","center","center",false,false,false) 
dxDrawText(votecount.."/"..reqPlayers.." VOTOS RECIVIDOS",0,(645/900)*sy,(1439/1440)*sx,(701/900)*sy,tocolor(255,255,255,255),1.5,"bankgothic","center","center",false,false,false) 
end 
  
function UpdateCount(VoteCount,PlayerCount) 
outputChatBox(VoteCount..PlayerCount) 
reqPlayers = PlayerCount  
votecount = VoteCount 
end 
addEvent("UpdateCount",true) 
addEventHandler("UpdateCount",getRootElement(),UpdateCount) 
  

Posted

you are too lazy to read one page?

https://wiki.multitheftauto.com/wiki/DxDrawText

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

At least include the credits which were printed on top of the script...

And if you haven't noticed by now, you can change the size by editing the number before the word "bankgothic" which is the font. And i agree, size is too big, ill release a better version soon :)

.

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...