Functions
This is a list of all functions provided by Ratchet, except for object methods that are not listed here but on the objects page. You can also use any Lua functions provided by the standard libraries.
Global
- fileExists
- getFilePath
- include
- export
- getPlayerFromID
- getPlayerFromName
- getPlayersInRadius
- getAllPlayers
- getPlayerCount
- spawnActor
- findActor
- getActorsInRadius
- getInventoryByType
- dbConnect
- setTimer
- killTimer
- on
- off
- once
- emit
- sendToClient
- getType
- base64Encode
- base64Decode
- friendlyTime
- printInfo
- printSuccess
- printWarning
- printError
String
- string.explode
- string.split
- string.startsWith
- string.endsWith
- string.trimLeft
- string.trimRight
- string.trim
- string.join
- string.padLeft
- string.padRight
- string.isEmpty
- string.isAlpha
- string.isNumeric
- string.isAlphaNumeric
- string.count
- string.capitalize
- string.levenshtein
- string.removePrefix
- string.removeSuffix
- string.slugify
- string.random
Math
Table
- table.copy
- table.merge
- table.swap
- table.reverse
- table.shuffle
- table.keys
- table.values
- table.contains
- table.isEmpty
- table.count
- table.random
Dice
Web
JSON
Tot ! Chat
- TotChat.Alert
- TotChat.Broadcast
- TotChat.SendLocal
- TotChat.SendMessage
- TotChat.ReceiveMessage
- TotChat.Notify
- TotChat.NotifyLocal
- TotChat.Warn
Tot ! Sudo
- TotSudo.HasRole
- TotSudo.GrantRole
- TotSudo.RevokeRole
- TotSudo.GetRoles
- TotSudo.HasPermission
- TotSudo.HasCharTag
- TotSudo.AddCharTag
- TotSudo.RemoveCharTag
- TotSudo.GetCharFloat
- TotSudo.SetCharFloat
- TotSudo.RemoveCharFloat
- TotSudo.GetCharString
- TotSudo.SetCharString
- TotSudo.RemoveCharString
- TotSudo.HasGlobTag
- TotSudo.AddGlobTag
- TotSudo.RemoveGlobTag
- TotSudo.GetGlobFloat
- TotSudo.SetGlobFloat
- TotSudo.RemoveGlobFloat
- TotSudo.GetGlobString
- TotSudo.SetGlobString
- TotSudo.RemoveGlobString
Tot ! Admin
- TotAdmin.RunScript
- TotAdmin.Teleport
- TotAdmin.Warp
- TotAdmin.GiveKit
- TotAdmin.GetPuppet
- TotAdmin.GetPuppetsInRadius
- TotAdmin.GetMapMarkers
- TotAdmin.SetMapMarker
- TotAdmin.DeleteMapMarker
Tot ! Custom
- TotCustom.GetBody
- TotCustom.GetArmor
- TotCustom.GetAccessories
- TotCustom.SetBody
- TotCustom.SetArmor
- TotCustom.SetAccessories
Roleplay Redux
- RPR.Roll
- RPR.GetSkill
- RPR.GetStat
- RPR.HasPerk
- RPR.AddPerk
- RPR.RemovePerk
- RPR.ModifySkill
- RPR.ModifyStat
- RPR.SetStat
- RPR.SetStatMax
- RPR.HasRune
- RPR.HasBuff
- RPR.RemoveBuff
- RPR.GiveBuff
- RPR.BuffSkill
- RPR.BuffStat
- RPR.BuffPerk
- RPR.BuffAbility
- RPR.BuffStatus
- RPR.HasItem
- RPR.TakeItem
- RPR.GiveItem
- RPR.GetBuffs
- RPR.GetSheet
- RPR.ResetSheet
- RPR.ExportSheet
- RPR.ImportSheet
- RPR.HasSpell
- RPR.LearnSpell
- RPR.ForgetSpell
- RPR.Refresh
- RPR.GetAbilities
- RPR.GetEquippedRunes
- RPR.SetEquippedRunes