Advertisement
Guest User

Untitled

a guest
Feb 19th, 2020
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. using CitizenFX.Core;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using WildRP.Client.Managers;
  8. using WildRP.Core.Attributes;
  9. using WildRP.Core.Models;
  10. using WildRP.Core.Models.Interfaces;
  11.  
  12. namespace WildRP.Client.Items
  13. {
  14. public class KonosMeat : Item
  15. {
  16. public KonosMeat() : base()
  17. {
  18. Metadata.ItemId = 1002;
  19. Metadata.ItemName = "Kono's Meat";
  20. Metadata.ItemImage = "consumable/consumable_mature_venison_thyme_cooked.png";
  21. Metadata.ItemModel = "P_CS_SOMEDILDO";
  22. Metadata.Description = "Quality meat, only the best!";
  23. Metadata.MaxStackQuantity = 10;
  24. Metadata.WeightPer = 0.5f;
  25. Metadata.CanDrop = true;
  26. Metadata.CanSell = true;
  27. }
  28.  
  29. [ContextOption("Eat")]
  30. public async void Consume()
  31. {
  32. ChatManager.ChatMessageReceived("System", "", "You ate Kono's Meat, you will die in 5 seconds");
  33.  
  34. await BaseScript.Delay(5000);
  35.  
  36. External.Game.PlayerPed.HealthCore = 0;
  37. }
  38. }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement