Jump to content

[HELP] Script


Recommended Posts

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 )

Link to comment


To create the text.


To get the real time.

methyl? Do you mean meta? If so;

     <script src="thefile.lua" type="thetype"/> 

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:

Link to comment
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 ..

Link to comment

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