Skip to main content

ARK · ITEM

ARK: Survival Ascended Longneck Rifle item

Longneck Rifle

  • Item
  • Base Game

A powerful single-shot rifle that deals high damage per shot, useful for taking down dangerous creatures or PvP engagements.

Master the Longneck Rifle faster. Join our Discord and swap configs, IDs and commands with the community. As of .

Blueprint Path

Full blueprint path

"Blueprint'/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponOneShotRifle.PrimalItem_WeaponOneShotRifle'"

Spawn Commands

GFI Code

cheat gfi PrimalItem_WeaponOneShotRifle 1 0 0

GiveItemNum

cheat GiveItemNum 131 1 0 0

About

The Longneck Rifle is a high-damage ranged weapon that fires one shot before requiring a reload. It uses ammunition and is effective against most creatures and players at range. Admins typically spawn it to test weapon balance, equip admin characters, or provide to players in early-game testing phases.

Spawn it with its GFI code, which is a numeric ID. The rifle cannot be stacked, so you receive one per spawn command unless you adjust the quantity parameter.

Frequently Asked Questions

Is the Longneck Rifle a DLC item or part of the base game?
The Longneck Rifle is part of the base ARK: Survival Ascended game, so no DLC or map pack is required to spawn or craft it.
Does the Longneck Rifle spawn command work in single-player and multiplayer?
Yes, the command is identical in both. Single-player has cheats enabled by default; multiplayer just requires an admin login first. The Longneck Rifle then spawns the same way.
What's the Longneck Rifle GFI short code?
The GFI code for the Longneck Rifle is PrimalItem_WeaponOneShotRifle. GFI matches the item by its short blueprint name, so cheat gfi PrimalItem_WeaponOneShotRifle 1 0 0 is the fastest way to spawn it without typing the full blueprint path.
What is the Longneck Rifle used for?
The Longneck Rifle is a high-damage ranged weapon that fires one shot before requiring a reload. It uses ammunition and is effective against most creatures and players at range. Admins typically spawn it to test weapon balance, equip admin characters, or provide to players in early-game testing phases.
How do I spawn the Longneck Rifle as a blueprint instead of a finished item?
Set the final argument to 1: cheat gfi PrimalItem_WeaponOneShotRifle 1 0 1. The last number is the blueprint flag, where 0 gives the crafted item and 1 gives its blueprint (for craftable items; on items with no blueprint the flag is simply ignored).
Why isn't my Longneck Rifle spawn command working?
Check three things: admin access is enabled (enablecheats on servers), the code is typed exactly (PrimalItem_WeaponOneShotRifle), and all three trailing numbers are present. Copying cheat gfi PrimalItem_WeaponOneShotRifle 1 0 0 directly from this page avoids the most common mistakes.
How do I enable admin commands to spawn the Longneck Rifle?
In single-player, cheats are on by default. On a dedicated or hosted server, log in as admin first with enablecheats <AdminPassword>, then run the Longneck Rifle spawn command. Without admin access the console rejects it.
What's the Longneck Rifle class name?
The class name for the Longneck Rifle is PrimalItem_WeaponOneShotRifle_C. Class names end in _C and identify the item's blueprint at runtime, which makes them useful for spawn tools, mods, and RCON macros.
What's the difference between GFI and GiveItemNum for the Longneck Rifle?
Both spawn the Longneck Rifle. gfi PrimalItem_WeaponOneShotRifle matches the item by name and is quickest to type; GiveItemNum 131 uses the numeric ID and is precise for scripting. Same result, different lookup.
How do I spawn multiple Longneck Rifle at once?
Change the quantity argument, the first number after the code. For example cheat gfi PrimalItem_WeaponOneShotRifle 25 0 0 spawns 25 of the Longneck Rifle. Stacks respect the item's maximum stack size.
How do I give the Longneck Rifle to another player?
Look at the player and run cheat GiveItemToPlayer <PlayerID> 131 1 0 0, or stand near them and use cheat GiveItemNum 131 1 0 0 after selecting them in your admin tools. It's the quick way to hand out the Longneck Rifle during events and giveaways.
Is the Longneck Rifle spawn code on GameServersCodex accurate?
Yes. The Longneck Rifle's class name, GFI code, item ID, and blueprint path are reproduced exactly from the live game data and re-checked each patch, so you can copy them straight into your console.
Is the Longneck Rifle blueprint path case-sensitive?
Yes. "Blueprint'/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponOneShotRifle.PrimalItem_WeaponOneShotRifle'" must be typed exactly, including capitalization and the wrapping quotes. Copy it from this page to avoid a typo that returns an empty spawn.
Which game is the Longneck Rifle from?
The Longneck Rifle is from ARK: Survival Ascended. Every ID, code, and command on this page is specific to ARK: Survival Ascended and its current live build.
How do I spawn a higher-quality Longneck Rifle?
The second number is quality, where 0 is primitive and higher values roll toward ascendant. cheat gfi PrimalItem_WeaponOneShotRifle 1 100 0 attempts a top tier Longneck Rifle. Quality only affects items that support tiers; on others it's ignored.
What is the blueprint path for the Longneck Rifle?
The full blueprint path is "Blueprint'/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponOneShotRifle.PrimalItem_WeaponOneShotRifle'". Paste it into GiveItem to spawn the exact item: cheat GiveItem "Blueprint'/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponOneShotRifle.PrimalItem_WeaponOneShotRifle'" 1 0 0. Copy it exactly, because the path is case sensitive and must keep its wrapping quotes.
How do I open the console to spawn the Longneck Rifle?
On PC, press Tab to open the admin console, paste the command, and press Enter. On Xbox and PlayStation, open the pause menu and use the on-screen command bar. Then drop in the Longneck Rifle spawn code from this page.
What's the difference between the Longneck Rifle GFI code and its blueprint path?
The GFI code PrimalItem_WeaponOneShotRifle is a short name for quick spawning; the blueprint path "Blueprint'/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponOneShotRifle.PrimalItem_WeaponOneShotRifle'" is the full engine reference used by GiveItem and spawn tools. Both point at the same Longneck Rifle.
What is the item ID for the Longneck Rifle?
The numeric item ID for the Longneck Rifle is 131. Use it with GiveItemNum, cheat GiveItemNum 131 1 0 0, to spawn by ID instead of by GFI name.
What do the numbers in the Longneck Rifle spawn command mean?
In cheat gfi PrimalItem_WeaponOneShotRifle 1 0 0, the code identifies the Longneck Rifle, then the three numbers are quantity, quality, and blueprint flag (0 = item, 1 = blueprint). So it spawns one standard Longneck Rifle.
When was the Longneck Rifle data last updated?
The Longneck Rifle entry was last verified on GameServersCodex on June 28, 2026. We track the live ARK: ASA build, so the IDs and commands here reflect the current patch.
How do I spawn the Longneck Rifle by its item ID?
Run cheat GiveItemNum 131 1 0 0 in the admin console. GiveItemNum spawns by numeric ID, which is precise for scripts and control panels. The trailing numbers are quantity, quality, and blueprint flag.
Where can I copy the Longneck Rifle spawn command?
Use the copy buttons in the Spawn Commands and Blueprint Path sections near the top of this page. Each copies the full Longneck Rifle command to your clipboard in one click, ready to paste into the console.
What is the Longneck Rifle class used for in mods or spawn tools?
Spawn managers, loot-table editors, and RCON macros reference the Longneck Rifle by its class PrimalItem_WeaponOneShotRifle_C or GFI PrimalItem_WeaponOneShotRifle. Both uniquely identify it in ARK: Survival Ascended.
Can I spawn the Longneck Rifle over RCON or on a dedicated server?
Yes. Send the same command through RCON or your control-panel console: cheat gfi PrimalItem_WeaponOneShotRifle 1 0 0. If your tool already runs with admin context, drop the leading "cheat". It works the same on hosted, self-hosted, and RCON setups.
Can I get the Longneck Rifle without spawning it?
Yes. The Longneck Rifle can also be obtained through normal ARK: Survival Ascended progression. Admins usually spawn it for speed when testing, running events, or outfitting players, which is what the commands on this page are for.
What is the Longneck Rifle?
A powerful single-shot rifle that deals high damage per shot, useful for taking down dangerous creatures or PvP engagements.
How do I add the Longneck Rifle to a starter kit or loadout?
Include cheat gfi PrimalItem_WeaponOneShotRifle 1 0 0 in your server's kit or spawn script, and set the quantity argument to hand out multiples. Pair it with other item commands from the Codex to build a full loadout.
What items are related to the Longneck Rifle?
See the Related section at the bottom of this page for items commonly used alongside the Longneck Rifle, or open Browse Games to explore the full ARK: Survival Ascended database.
How do I give myself the Longneck Rifle with a cheat command?
Open the admin console and run cheat gfi PrimalItem_WeaponOneShotRifle 1 0 0. That gives you one Longneck Rifle instantly. The three numbers after the code are quantity, quality, and blueprint flag. Raise the first to spawn a stack, or set the last to 1 to receive it as a blueprint instead of a finished item. Verified against the current ARK: ASA build as of June 28, 2026.