Fix player blip
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
using System.Windows;
|
||||
|
||||
[assembly:ThemeInfo(
|
||||
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
|
||||
//(used if a resource is not found in the page,
|
||||
// or application resource dictionaries)
|
||||
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
|
||||
//(used if a resource is not found in the page,
|
||||
// app, or any theme specific resource dictionaries)
|
||||
)]
|
||||
@@ -170,7 +170,7 @@ namespace RageCoop.Client
|
||||
{
|
||||
PedBlip.Sprite=BlipSprite;
|
||||
}
|
||||
if (IsPlayer && PedBlip.Name!=Owner.Username)
|
||||
if (IsPlayer)
|
||||
{
|
||||
PedBlip.Name = Owner.Username;
|
||||
}
|
||||
|
||||
@@ -36,6 +36,9 @@ namespace RageCoop.Client
|
||||
if (value==_ownerID && Owner!=null) { return; }
|
||||
_ownerID = value;
|
||||
Owner=PlayerList.GetPlayer(value);
|
||||
if(this is SyncedPed && Owner!=null){
|
||||
Owner.Character=((SyncedPed)this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user