⚙️Configuration
ADVERTENCIA
Antes de explicar la configuración de la nueva version tengo que dar una ADVERTENCIA importante. El nuevo sistema de PROPS funciona por separado del QUESTS, ¿En que afecta eso? Los props que pongas no se elimina cuando lo registran, a los minutos vuelve a salir, también los props son visibles para todo los jugadores del servidor y todos podrán acceder a el para buscar y obtener la recompensa.
WARNING
Before explaining the configuration of the new version, I have to give an important WARNING. The new PROPS system works separately from QUESTS. How does that affect it? The props you place are not removed when they are registered; after a few minutes, they reappear. Additionally, the props are visible to all players on the server, and everyone can access them to search for and claim the reward.Ç
Config_npcs.lua
The options mentioned in the updates have been added.
Aow the config is separately in different files.
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
}
En los props no hay cambios, solo se ha mejorado la capacidad de que el prop este siempre en el suelo y no flotando.
config_locale.lua
config_webhooks.lua
It is in development, I do not recommend using it for now.
Próximamente el archivo webhooks.lua esta abierto para todo el mundo.
Soon the webhooks.lua file will be open to everyone.
config.lua
Se ha añadido la posibilidad de cambia el core del script pero aun no se recomienda cambiarlo a ESX, el script esta en desarrollo para ESX
Tambien se ha añadido la posibilidad de elegir la notificación personalizada desde el config.
Se tiene que tener en cuenta que soy nueva en creacion de scripts para fiveM, toda ayuda y consejo son bienvenidos en mi discord.
It must be taken into account that I am new to creating scripts for fiveM, all help and advice is welcome in my discord.
Última actualización