1
0
mirror of https://github.com/veden/Rampant.git synced 2024-12-30 21:19:46 +02:00
Rampant/libs/PlayerUtils.lua
2019-12-06 21:57:20 -08:00

22 lines
430 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.index == natives.activeSurface)
end
return false
end
playerUtilsG = playerUtils
return playerUtils