Kostis Posted June 7, 2012 Share Posted June 7, 2012 Hello everybody. I would like to make a script that will hide the weapon the money and the health at top right and show only the time. I alsao want the time to pass like in real life Thanks. I Am begginer. Link to comment
Axel Posted June 7, 2012 Share Posted June 7, 2012 local hudComponents = {"health","armour","ammo","weapon","money","wanted","crosshair","area_name","radar"} for i, n in pairs(hudComponents) do showPlayerHudComponent ( n, false ) end (client) function updateTime() local realTime = getRealTime() local hour = realTime.hour local minute = realTime.minute setMinuteDuration ( 60000 ) setTime( hour , minute ) end setTimer ( updateTime, 500, 1 ) setTimer ( updateTime, 3000000, 0 ) function constantTime() setTimer ( updateTime, 4000, 1 ) end addEventHandler ( "onResourceStart", getRootElement(), constantTime ) (server) Link to comment
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