mirror of
https://github.com/veden/Rampant.git
synced 2024-12-28 21:08:22 +02:00
22 lines
371 B
Lua
22 lines
371 B
Lua
if playerUtilsG then
|
|
return playerUtilsG
|
|
end
|
|
local playerUtils = {}
|
|
|
|
-- imports
|
|
|
|
-- imported functions
|
|
|
|
-- module code
|
|
|
|
function playerUtils.validPlayer(player)
|
|
if player and player.valid then
|
|
local char = player.character
|
|
return char and char.valid
|
|
end
|
|
return false
|
|
end
|
|
|
|
playerUtilsG = playerUtils
|
|
return playerUtils
|