diff --git a/server/admin.lua b/server/admin.lua index 54e0f68..3191d56 100644 --- a/server/admin.lua +++ b/server/admin.lua @@ -164,6 +164,7 @@ AddEventHandler('Erfan:gang:addPlayerToGang', function(gangId , playerId , grade ['@name'] = GetRealPlayerName(playerId), } , function(e) TriggerClientEvent('Erfan:gang:setGang',playerId,gangId,gradeId) + TriggerEvent('Erfan:gang:setGang', playerId,gangId,gradeId) if activeGangMember['g_'..gangId] then table.insert( activeGangMember['g_'..gangId] , _Source ) else diff --git a/server/gangData.lua b/server/gangData.lua index 8d668fa..32d09c7 100644 --- a/server/gangData.lua +++ b/server/gangData.lua @@ -234,6 +234,7 @@ AddEventHandler('Erfan:gang:addNewMember', function(gradeId , playerId) ['@name'] = GetRealPlayerName(playerId), } , function(e) TriggerClientEvent('Erfan:gang:setGang',playerId,gangId,gradeId) + TriggerEvent('Erfan:gang:setGang', playerId,gangId,gradeId) if activeGangMember['g_'..gang[1].gangId] then table.insert( activeGangMember['g_'..gang[1].gangId] , playerId ) else