Jump to content

RP stats


Kostis

Recommended Posts

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

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