Weapons

Weapon-type templates. In the shipped scripts a weapon is handed to a character by name:

local w = Pg.GetGuidByName("Assault Rifle")
Human.Inventory.SetAllWeapons(uChar, { w })

(real call sites: resident/hero.lua, vz/pmccon001.lua, vz/pmccon033.lua β€” the last uses Pistol (silver).) The player arsenal: Pistol, Pistol (silver), Covert Pistol, Assault Rifle, Sniper Rifle, Anti-Material Rifle, RPG, Grenade Launcher, C4, Shotgun, Minigun, Light MG (for a grenade pickup specifically, use Supply Drop (AL Grenade) below β€” the bare Grenade template resolves to the thrown projectile entity, not an inventory item).

On β€œBlanco” and other shop names. The fancy in-game shop/display names are localized strings in the stringdb, mapped onto these generic template names β€” they are not the template names and won’t resolve via GetGuidByName. (β€œBlanco” itself is the PmcCon002 mission NPC, not a weapon.) Use the generic names below to spawn/give a weapon.

Every name below is confirmed β€” live spawn-tested (Pg.Spawnβ€˜d as a ground pickup, one at a time) and verified to actually drop. For the broader weapon-adjacent template list β€” including untested names, vehicle-mounted-weapon variants, and entries that turned out not to be pickups at all (projectile/ammo entities, NPC archetype names) β€” see Hash Lookup.

NameTemplate key
Anti-Material Rifle0x80006EAB
Anti-Material Rifle (KSVK)0x80006EB3
Assault Rifle0x8000436F
AT Rocket0x80006B58
Automatic Rifle0x80006B6A
Bullpup Rifle0x80006881
C40x80005FD3
Carbine0x80007212
Cheat RPG0x8000A26B
Combat Rifle0x80006878
Covert Pistol0x80006B65
Covert SMG0x80006B67
Fuel-Air RPG0x80006ED0
Grenade Launcher0x80006EA4
Grenade Launcher PEP0x8000AED3
Hunting Pistol0x80006ECE
Light MG0x8000569E
Machine Pistol0x80006B53
Machine Pistol (PP2000)0x80007213
Machine Pistol (TMP)0x80006B57
Machine Pistol (Uzi)0x80006B59
Minigun0x80008449
Minigun 10000x8000A25C
Pistol0x80006B45
Pistol (AL)0x80009B15
Pistol (CH)0x80009B13
Pistol (GR)0x80009B14
Pistol (silver)0x8000508E
rifle0x800056AC
RPG0x8000437B
rpglauncher0x800056AB
Shotgun0x8000569D
smg0x80006B54
Sniper Rifle0x8000569A
Sniper Rifle (AA Backup)0x8000B036
Sniper Rifle (SVD)0x80006B43
Supply Drop (AL Grenade)0x8000AE08
Supply Drop (C4)0x8000721E
Supply Drop (C4) (VZ)0x80008567
Supply Drop (Guerilla) (Sniper)0x80008563
Supply Drop (Light MG)0x80007221
Supply Drop (Light MG) (AL)0x8000A259
Supply Drop (RPG)0x8000AF6F
Supply Drop (Sniper CH)0x8000AF67
Supply Drop (Sniper RU)0x8000AF68
Supply Drop (Sniper)0x8000721D

Back to top

This site uses Just the Docs, a documentation theme for Jekyll.