⚙️Configuration
RVNPCS = {}
RVNPCS.drawtext = true -- true = draw text, false = don't draw text
RVNPCS.interactionrange = 3 -- Interaction range
RVNPCS.NPCs = {
[1] = {
model = {"a_m_m_salton_03"},
title = "TEXT NAME", -- Title text
texttarget = "TEXT TARGET", -- Text target
coords = vector4(301.13, 2898.59, 43.61, 163.69), -- NPC coordinates
animation = {
dict = "anim@mp_corona_idles@male_c@idle_a", -- Animation dictionary
name = "idle_a", -- Animation name
freezeAnimation = true, -- Add this field
},
dialog = { -- Dialog text
"TEXT DIALOG" -- Dialog text
},
camara = true, -- Activate camera
camarastanding = {
offsetX = 0.5, -- X position
offsetY = 0.7, -- Y position
offsetZ = 0.5, -- Z position
focusOffsetZ = 0.3 -- Focus Z position
},
requiredItem = '', -- Required item - "item", "" or false
requiredAmount = 10, -- Required amount
requiredItem2 = "", -- Second required item - "item", "" or false
requiredAmount2 = 1, -- Second required amount
rewardItem1 = '', -- Reward item - "item" or false
rewardAmount1 = 1, -- Reward amount
useProgressBar = false, -- Use progress bar
rewardItem2 = '', -- Reward item - "item" or false
rewardAmount2 = 2, -- Reward amount
rewardItem3 = '', -- Reward item - "item" or false
rewardAmount3 = 1, -- Reward amount
accept = true, -- Accept NPC
eventOnAccept = "reaver_talknpcs:notification2", -- Event to execute
executeEvent = false, -- Execute event instead of giving an item
CheckAllowedCitizenIDs = false,
sprites = false, -- bl_sprites
target = true, -- Activate target
AllowedCitizenIDs = { -- Allow these IDs to interact
["citizenID1"] = true, -- Allow this ID to interact
["citizenID2"] = true, -- Allow this ID to interact
-- etc.
},
allowEveryone = true, -- Allow everyone to interact
-- requiredJob = "mechanic1", -- Specific job required (optional)
-- requiredGang = "mafia", -- Specific gang required (optional)
useProp = false,
dailyCooldownEnabled = false, -- Added: Enable daily cooldown per NPC
dailyCooldowntime = 24 * 60 * 60, -- Daily cooldown time
Cooldown = 0, -- Cooldown time
propName = 'PROP', -- Prop name
propCoords = { -- Prop coordinates
boneIndex = 28422, -- Bone index (right hand)
x = -0.15, -- X offset
y = 0.0, -- Y offset
z = 0.0, -- Z offset
xRot = 0.0, -- X rotation
yRot = 0.0, -- Y rotation
zRot = 0.0 -- Z rotation
},
outfit = { -- NPC outfit
enabled = false, -- Enable outfit
torso = { drawable = 338, texture = 0 }, -- Torso
legs = { drawable = 347, texture = 0 }, -- Legs
shoes = { drawable = 235, texture = 0 }, -- Shoes
accessories = { drawable = 0, texture = 0 }, -- Accessories
undershirt = { drawable = 14, texture = 5 }, -- Undershirt
kevlar = { drawable = 0, texture = 0 }, -- Kevlar
badge = { drawable = 0, texture = 0 }, -- Badge
torso2 = { drawable = 875, texture = 0 }, -- Torso 2
hat = { enabled = false, drawable = 246, texture = 0 }, -- Hat
hair = { enabled = true, drawable = 233, texture = 0, color1 = 19, color2 = 18}, -- Hair
mother = 45, -- Face 2
father = 23, -- Skin 1
face = 45, -- Face 1
skin = 23, -- Skin 1
faceMix = 0.6,
eyebrows = {index = 3, color =0, opacity = 1.0}, -- Eyebrows
mask = {enabled = true, index = 1, texture = 0}, -- Mask
glasses = {enabled = false, index = 1, texture = 0}, -- Glasses
makeup = {
lipstick = {index = 7, color = 2, opacity = 1}, -- Lipstick
blush = {index = -1, color = 2, opacity = 0.8}, -- Blush
eyeShadow = {index = 4, color = 2, opacity = 0.8} -- Eye Shadow
},
},
useWeapon = true, -- Use weapon
weaponName = 'WEAPON_PISTOL', -- Weapon name
ShowNPCImage = false, -- Show NPC image
imageUrl = "https://r2.fivemanage.com/Ck8tIuaMEfDjY82KcMEaI/images/logoreaver.png", -- Image URL
blip = {
enabled = false, -- Enable blip
sprite = 147, -- Blip sprite
color = 7, -- Blip color
scale = 0.8, -- Blip scale
display = 4, -- Display on map
shortRange = true, -- Use short range
name = "" -- Add this line to set the blip name
}
},
--more npcs
}
Última actualización