⚙️NPC Setup Guide
🎅 Santa Claus Ped – Setup Guide
If you want to use the Santa NPC in your risk-xmasvevent script, you can use this ped:
Santa Claus Add-On Ped by JR59 https://www.gta5-mods.com/player/santa-claus-add-on-ped
Full credits go to JR59 for creating and releasing the Santa Claus ped.
📦 Download & Extract
Download the Santa Claus ped from the link above.
Inside the archive, open the folder
Santa Claus by JR59.Extract the entire content of this folder and drag all files to your Desktop.
You should now have all Santa files on your Desktop.
👤 Replace an existing NPC ped
You can replace any ped model you want by renaming the files.
Choose a ped you want to replace, for example:
ig_bankman(You can find more ped models here: https://docs.fivem.net/docs/game-references/ped-models/)It is recommended to use an NPC ped that you barely use on your server, e.g.
ig_bankman.Rename all Santa files from their original name (e.g.
Santaclaus) to the ped you want to replace, for example:
Santaclaus.ydd→ig_bankman.yddSantaclaus.yft→ig_bankman.yftSantaclaus.ytd→ig_bankman.ytdSantaclaus.ymt→ig_bankman.ymt
After renaming, move all these files into the
streamfolder of your risk-xmasevent resource.
🔧 Config Setup (config.lua)
config.lua)Open your config.lua and find:
RISK.Shop = { -- Christmas shop location and settings
coords = vector4(199.2881, -933.1703, 30.6868, 326.4328), -- Shop position and heading
ped = { -- NPC Santa configuration
enabled = false,
model = "ig_bankman"
},Adjust it as follows:
Set
enabledtotrueSet
modelto the ped you replaced (for exampleig_bankman)
RISK.Shop = { -- Christmas shop location and settings
coords = vector4(199.2881, -933.1703, 30.6868, 326.4328), -- Shop position and heading
ped = { -- NPC Santa configuration
enabled = true,
model = "ig_bankman"
},
}If you used a different ped name, make sure
modelmatches that name.
📜 Replace your fxmanifest.lua
fxmanifest.luaReplace your existing fxmanifest.lua with the following:
fx_version 'adamant'
lua54 'yes'
game 'gta5'
description 'risk-scripts.tebex.io'
version '1.0'
ui_page 'html/index.html'
files {
'html/**/**.*',
'stream/jrbXMAS_Present_Crate.ytyp',
'stream/ig_bankman.ydd',
'stream/ig_bankman.yft',
'stream/ig_bankman.ytd',
'stream/ig_bankman.ymt'
}
data_file 'DLC_ITYP_REQUEST' 'stream/jrbXMAS_Present_Crate.ytyp'
data_file 'PED_METADATA_FILE' 'stream/ig_bankman.ymt'
shared_scripts {
'config.lua'
}
client_scripts {
'main/client.lua'
}
server_scripts {
'main/server.lua'
}If you used a different ped model name instead of
ig_bankman, make sure you also update all file names in thefilessection and thePED_METADATA_FILEline accordingly.
🔄 Final Step
Restart your server
The Santa NPC should now appear at your shop location and use the replaced ped model.
Last updated