Ulysses Stuff > General Chat & Help and Support

Restricting DarkRP Jobs using UTime


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.


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


[0] Message Index

Go to full version