πΆSpawn NPC Copy
How To Setup SNC and the config file
How To Setup
Download OX-LIB and place it in your resources.
ensure ox-lib in your server.cfg
Download Spawn NPC Copy files from your keymaster and place it in your resources.
ensure sf_spawnnpccopy in your server.cfg
Restart Your Server
Config.lua to Spawn NPC Copy:
Config = {}
Config.behavior = false -- (true/false) false = aggressive | true = No reaction (only working if the NPC have a weapon in hand)
Config.maxnpcs = 10 -- The limit of NPC Copies to spawn
Config.offset = 2.0 -- how many meters away from you should it spawn?
-- Weapon Options --
Config.givespecificweapon = false -- (true/false) false = Gives u a menu to enter the weapon u wish | true = Edit the weapon below
--|| ONLY IF Config.givespecificweapon = true ||--
Config.weapon = "weapon_pistol50" -- Change the weapon ID https://wiki.rage.mp/index.php?title=Weapons
Config.random = false -- (true/false) false = not random, use line above | true = random, use line below
Config.weaponOptions = {"weapon_pistol", "weapon_combatpistol", "weapon_appistol"}
--|| -- ||--
-- Animation Option --
Config.loop = true -- (true/false) false = No loop | true = loop
Config.animationnotify = true -- (true/false)
-- Commands --
Config.commands = true -- (true/false) false = dont use commands | true = use commands ()
Config.spawncommand = "spawncopy" -- Change to your own command
Config.deletecommand = "deletecopy" -- Change to your own command
Config.weaponcommand = "addweapon" -- Change to your own command
Config.removeweaponcommand = "removeweapon" -- Change to your own command
Config.animationcommand = "playanimation" -- Change to your own command
Config.stopanimation = "stopanimation" -- Change to your own command
-- Menu --
Config.menu = true -- (true/false) false = No Menu | true = Menu [Require OX-LIB]
Config.menucommand = "npcmenu" -- Change to your own command
Config.menudebug = false -- (true/false) false = No Debug Message | true = Gives a debug message (In F8) when u are going back in the menu
Config.weathersystem = false -- (true/false) Only if you have this: https://github.com/kibook/weathersync
Config.greenscreen = false -- (true/false) Only if you have this: https://fivemdocs.simonfas.dk/scripts/spawn-npc-copy/green-screen
-- Animation Presets (ONLY WITH OX-LIB) --
Config.animationpresets = { -- Only if u have this: https://fivemdocs.simonfas.dk/scripts/spawn-npc-copy/animation-presets
{
label = "aimkneel",
description = "Tactical Kneel Aiming",
animationDict = "anim@tactical_kneel_aiming",
animationName = "kneel_aiming_clip",
menu = "male"
},
{
label = "riflerelax1",
description = "Tactical Collapsed Lowready",
animationDict = "anim@male_tactical_collapsed_lowready",
animationName = "collapsed_lowready_clip",
menu = "male"
},
{
label = "riflerelax2",
description = "Tactical Highready Relaxed",
animationDict = "anim@male_tactical_highready_relaxed",
animationName = "highready_relaxed_clip",
menu = "male"
},
{
label = "highlow3",
description = "Tactical Highlow High Leftlean",
animationDict = "anim@tactical_highlow_high_leftlean",
animationName = "high_leftlean_clip",
menu = "male"
},
{
label = "highlow4",
description = "Tactical Highlow Low Leftlean",
animationDict = "anim@tactical_highlow_low_leftlean",
animationName = "low_leftlean_clip",
menu = "male"
},
{
label = "gunselfie1",
description = "Hoodrat Pistol Selfie",
animationDict = "anim@hoodrat_pistol_selfie",
animationName = "selfie_clip",
menu = "female"
},
{
label = "kneelstare1",
description = "Kneeling Stare",
animationDict = "anim@kneeling_stare",
animationName = "kneeling_stare_clip",
menu = "female"
},
{
label = "modelshy",
description = "Model Cute/Shy",
animationDict = "anim@model_cute",
animationName = "model_cute_clip",
menu = "female"
},
-- Add more presets here if needed
}
-- Notify System --
Config.notify = true -- (true/false) | Spawn Copy Notify
Config.ox = true -- (true/false) if false, then its Chat notify [READ readme.txt]
--|||||||||||||||||--
--|||OX SETTINGS|||--
--|||||||||||||||||--
-- Spawn NPC Copy Notify --
Config.type = 'success' -- ('inform' or 'error' or 'success'or 'warning')
-- Delete NPC Copy Notify --
Config.oxdeletetype = 'success' -- ('inform' or 'error' or 'success'or 'warning')
Config.deletenotify = true -- (true/false) | Delete Copy Notify
-- Max NPC Copy Notify --
Config.oxmaxtype = 'error' -- ('inform' or 'error' or 'success'or 'warning')
-- Playing Animation Notify --
Config.oxanimationtype1 = 'success' -- ('inform' or 'error' or 'success'or 'warning')
-- Not Playing Animation Because Of No Spawned NPCS Notify --
Config.oxanimationtype2 = 'error' -- ('inform' or 'error' or 'success'or 'warning')
-- Not Playing Animation Because Of Wrong Animation Name Notify --
Config.oxanimationtype3 = 'error' -- ('inform' or 'error' or 'success'or 'warning')
-- Stopped Animation --
Config.oxanimationtype4 = 'success' -- ('inform' or 'error' or 'success'or 'warning')
-- COMING SOON --
Config.emergencyVehicles = {
"police", -- Example: "police", "ambulance", etc.
-- Add more emergency vehicle names as needed
}
Last updated