From bb417a6e7a4f09483d601258da0073dab0cce762 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Sun, 4 Nov 2018 21:49:26 +0000 Subject: [PATCH] Fixed Desync with no character --- modules/ExpGamingCore/Role/config.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ExpGamingCore/Role/config.lua b/modules/ExpGamingCore/Role/config.lua index e0840c24..3e5ded37 100644 --- a/modules/ExpGamingCore/Role/config.lua +++ b/modules/ExpGamingCore/Role/config.lua @@ -1,9 +1,9 @@ Role.add_flag('is_default') -- this must be included in atleast one role -Role.add_flag('is_root',function(player,state) player.character.destructible = not state end) -- not required but setting true will allow everythin for that role -Role.add_flag('is_antiroot',function(player,state) player.character.destructible = not state end) -- not required but setting true will disallow everythin for that role +Role.add_flag('is_root',function(player,state) if player.character then player.character.destructible = not state end end) -- not required but setting true will allow everythin for that role +Role.add_flag('is_antiroot',function(player,state) if player.character then player.character.destructible = not state end end) -- not required but setting true will disallow everythin for that role Role.add_flag('is_admin',function(player,state) player.admin = state end) -- highly recomented but not required Role.add_flag('is_spectator',function(player,state) player.spectator = state end) -Role.add_flag('is_jail',function(player,state) player.character.active = not state end) +Role.add_flag('is_jail',function(player,state) if player.character then player.character.active = not state end end) Role.add_flag('allow_afk_kick') Role.add_flag('is_donator') Role.add_flag('is_timed')