πSA-PLAYTIME
To count player's playtime on the server.
This script show up player ingame playtime. You can setup in this script translate and also you can define how that command will be called.
In default are these commands
β/playtimeβ (for players) - It show up player playtime of himself β/playtime acc IDβ (for admins) - It show up player playtime β/playtime charβ (for players) - It show up player playtime on his character β/playtime char IDβ (for admins) - It show up player playtime on his character
Configuration
https://github.com/Studio-PLAYERS/TEBEX-Doc/blob/main/SA-PlayTime/previews/config.lua
Config = {}
Config.Framework = 'esx' -- qb-core/esx | Don't touch this. Change it only if you have renamed qb or you use ESX
Config.Debug = false --Command for me to debug script. It print to console passes trough conditions. true/false
Config.Language = 'en' --Language: 'en' or 'cs'
Config.ThreadIncrease = 1 --This value mean how often is playtime increased 1 = 1min, default 5 = 5min, that means every 5 minutes will be added 5 minutes to playtime
Config.Command = 'playtime' -- Command which will display playtime
-- ---------------
-- VVV PLAYERS VVV
-- ---------------
-- Usage: '/playtime char' It shows playtime of the player's character
-- Usage: '/playtime acc' It shows playtime of the player's account
Config.Permissions = {
'admin',
'god',
}
-- -------------
-- VVV ADMIN VVV
-- -------------
-- Usage: '/playtime char ID' for example '/playtime char 1' will display playtime of Player with ID 1 on his character
-- Usage: '/playtime acc ID' for example '/playtime acc 1' will display playtime of Player with ID 1 on his account
Config.VersionCheck = true
Features
Resmon - 0.00ms
Configurable - locale/language, config (commands)
Easy-to-Configure!
We are using Asset Escrow system
Last updated