Skip to content

Commit 03458b6

Browse files
FabianTerhorstDoxoh
authored andcommitted
Merge pull request #826 from duydang2311/fix/incorrect-emit-rpc-answer-id
Fix `AsyncPlayer.EmitRPC` always returns 0
1 parent 9a586c3 commit 03458b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/AltV.Net.Async/Elements/Entities/AsyncPlayer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ public ushort EmitRPC(string name, params object[] args)
693693
{
694694
if (Player.Exists)
695695
{
696-
Alt.Core.TriggerClientRPC(Player, eventNamePtr, mValues);
696+
result = Alt.Core.TriggerClientRPC(Player, eventNamePtr, mValues);
697697
}
698698
}
699699

0 commit comments

Comments
 (0)