Server side blip and Vector2 argument

This commit is contained in:
Sardelka
2022-07-03 15:28:28 +08:00
parent fa96f4c073
commit 08e17b1714
11 changed files with 270 additions and 33 deletions

View File

@ -44,6 +44,13 @@ namespace RageCoop.Server.Scripting
API.SendCustomEvent(CustomEvents.ServerPropSync, new() { obj.ID, obj.Model ,obj.Position,obj.Rotation },clients);
}
}
public void SendServerBlipsTo(List<ServerBlip> objects, List<Client> clients = null)
{
foreach (var obj in objects)
{
API.SendCustomEvent(CustomEvents.ServerBlipSync, new() { obj.ID, (short)obj.Sprite, (byte)obj.Color, obj.Scale,obj.Position,obj.Rotation }, clients);
}
}
void NativeResponse(CustomEventReceivedArgs e)
{
try