some changes

This commit is contained in:
michael.reiswich
2021-05-21 20:57:55 +02:00
parent a5b6f3215e
commit a1234a7fcf
7 changed files with 27 additions and 12 deletions

View File

@@ -135,15 +135,15 @@ public class AttachmentSyncExample : Script
player.AddAttachment(Base36Extensions.FromBase36(hash), true);
}
//[Command("xdd")]
[Command("xdd")]
public void attachment(Player player)
{
Vehicle veh = player.Vehicle;
if (!player.HasAttachment("ammobox"))
if (!veh.HasAttachment("weapondeal"))
{
player.AddAttachment("ammobox", false);
//player.AddAttachment("weapondeal", false);
//player.SyncAnimation("carryBox");
//veh.AddAttachment("weapondeal1", false);
veh.AddAttachment("weapondeal", false);
//veh.AddAttachment("weapondeal2", false);
}
else