Ulysses Stuff > General Chat & Help and Support
Restricting DarkRP Jobs using UTime
(1/1)
Elektro:
Hi, I need help with using UTime (i'm not a very experimented LUA user).
I want to restrict a job until you have "x" hours in the server.
For example, people who want to be Police need to have 2 hours playing.
jakej78b:
--- Code: ---local x = 3 -- time in hours
CustomCheckFailMsg = function(ply) return ply:GetUTimeTotalTime() < x * 60 * 60 end
--- End code ---
Add this into your job and it will make it so only people who have played for x hours can become the job.
Navigation
[0] Message Index
Go to full version