1
0
mirror of https://github.com/veden/Rampant.git synced 2024-12-30 21:19:46 +02:00
Rampant/libs/PlayerUtils.lua
2020-04-27 20:41:18 -07:00

22 lines
429 B
Lua
Executable File

if playerUtilsG then
return playerUtilsG
end
local playerUtils = {}
-- imports
-- imported functions
-- module code
function playerUtils.validPlayer(player, natives)
if player and player.valid then
local char = player.character
return char and char.valid and (char.surface.name == natives.activeSurface)
end
return false
end
playerUtilsG = playerUtils
return playerUtils