ammobox
This commit is contained in:
@@ -136,19 +136,19 @@ public class AttachmentSyncExample : Script
|
||||
player.AddAttachment(Base36Extensions.FromBase36(hash), true);
|
||||
}
|
||||
|
||||
//[Command("xdd")]
|
||||
[Command("xdd")]
|
||||
public void attachment(Player player)
|
||||
{
|
||||
Vehicle veh = player.Vehicle;
|
||||
if (!veh.HasAttachment("weapondeal"))
|
||||
if (!player.HasAttachment("ammobox"))
|
||||
{
|
||||
veh.AddAttachment("weapondeal", false);
|
||||
player.AddAttachment("ammobox", false);
|
||||
//veh.AddAttachment("weapondeal1", false);
|
||||
//veh.AddAttachment("weapondeal2", false);
|
||||
}
|
||||
else
|
||||
{
|
||||
veh.ClearAttachments();
|
||||
player.ClearAttachments();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user