Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using CitizenFX.Core;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using WildRP.Client.Managers;
- using WildRP.Core.Attributes;
- using WildRP.Core.Models;
- using WildRP.Core.Models.Interfaces;
- namespace WildRP.Client.Items
- {
- public class KonosMeat : Item
- {
- public KonosMeat() : base()
- {
- Metadata.ItemId = 1002;
- Metadata.ItemName = "Kono's Meat";
- Metadata.ItemImage = "consumable/consumable_mature_venison_thyme_cooked.png";
- Metadata.ItemModel = "P_CS_SOMEDILDO";
- Metadata.Description = "Quality meat, only the best!";
- Metadata.MaxStackQuantity = 10;
- Metadata.WeightPer = 0.5f;
- Metadata.CanDrop = true;
- Metadata.CanSell = true;
- }
- [ContextOption("Eat")]
- public async void Consume()
- {
- ChatManager.ChatMessageReceived("System", "", "You ate Kono's Meat, you will die in 5 seconds");
- await BaseScript.Delay(5000);
- External.Game.PlayerPed.HealthCore = 0;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement