1LoL1 Posted April 9, 2014 Posted April 9, 2014 Where do I put this when I want to create the clock text? or what I put into methyl .. please help versionDisplay = textCreateDisplay () local versionText = textCreateTextItem ( "[!] TEST [!]", 0.950, 0.02, "medium", 255, 255, 255, 255, 1, "right" ) textDisplayAddText ( versionDisplay, versionText )
Ab-47 Posted April 9, 2014 Posted April 9, 2014 dxDrawText To create the text. getRealTime To get the real time. methyl? Do you mean meta? If so; <meta> <script src="thefile.lua" type="thetype"/> </meta> thefile = the file you saved your script as, for example I saved it as something.lua and it's client sided, I'll have this in the meta:
Ali_Digitali Posted April 9, 2014 Posted April 9, 2014 These are serverside functions so you cannot use dxDraw. Once you have created the display you need to add people to the display in order for them to see the text.
Noki Posted April 10, 2014 Posted April 10, 2014 text is server side, and dx is client side. Take your pick, which ever one you want. local time = getRealTime() local hours = time.hour local minutes = time.minute dxDrawText(..hours..":"..minutes.., args)
1LoL1 Posted April 11, 2014 Author Posted April 11, 2014 text is server side, and dx is client side. Take your pick, which ever one you want. local time = getRealTime() local hours = time.hour local minutes = time.minute dxDrawText(..hours..":"..minutes.., args) I copied it from Gamemode TDMA there it was written up and the text I wanted to give the DayZ server ..
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