Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
server trigger when add member to gang
Browse files Browse the repository at this point in the history
  • Loading branch information
yeganehha committed Mar 17, 2021
1 parent 63cddf2 commit 2589ecd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/admin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions server/gangData.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2589ecd

Please sign in to comment.