Skip to content

10% off shop orders, applied at checkoutBlack Friday: 30% off until Dec 1Server templatesServer templates

RPScripts

FiveM Weapon Scripts

Weapon dealer

Weapon Delivery

Frameworks:
  • ESX

Checked by the RPScripts Lab

  • Static check: 1 resource read
What was checked
Check compatibility with your server

Details

Frameworks
ESX
Dependencies
black_money
File size
84.1 kB
Licence and support terms
  • Licence: for your own server or project. No resale or sharing.
  • Updates: when a newer file is available, it appears in your account downloads.
  • Support: download access and product-specific setup questions.
Licence and support terms

Description

Weapon Delivery is an ESX resource for an illegal arms dealer. A player calls the dealer with a command and a secret code you define. If the code is right, an NPC drives a weapon van to the player and sells weapons from the back. It works as a whitelisted weapon van: only players who know the code get the delivery.

Features

  • The /handlarz command starts the call; a dialog asks for the code, and a wrong code ends the call
  • The dealer NPC spawns within 160 units of the player and drives to them in a van (default rumpo2), with a flashing "Handlarz" blip
  • When the van arrives, the dealer honks and opens the back doors; the player steps into the marker behind the van and presses E to open the weapon menu
  • Up to 10 weapons in the menu; default list: pistol, .50 pistol, heavy pistol, SMG, assault rifle and MK2, pump shotgun and MK2, baseball bat and knife. Names and prices are set in client.lua, and a slot with the name nil is removed
  • Weapons are paid for with the ESX black_money account and handed over with 100 rounds
  • Time limit of 50 seconds at the van, then the dealer drives off; the weapon menu also closes when the player moves
  • A player can have only one dealer on the way at a time

Requirements

  • ESX with its menu system (ESX.UI.Menu, default and dialog menus) and the black_money account
  • The dealer's dialog lines and the notifications are written in Polish; change the texts in client.lua and server.lua if you need another language

Installation

  • Create a folder for the resource in your resources folder (for example weapon_delivery) and copy client.lua, server.lua and __resource.lua into it.
  • Set your own code (SekretneHaslo), the van model (PojazdHandlarza) and the weapons with their prices at the top of client.lua.
  • Add ensure weapon_delivery (your folder name) to your server.cfg.

Notes

The purchase event on the server takes the weapon and the price from the client without checking them against the menu list. Add server-side validation before you run it on a public server.

Server setup

Step-by-step guide: how to install a FiveM script

Checked: the only resource of this download.

Weapon Delivery

In your downloads
  • Holster Script (+ Sound) FiveM resource preview
    • ESX
    • Standalone, QBCore

    Holster Script (+ Sound)

    $4.99$3.49
  • Holster Anim
    • ESX
    • QBCore
    Not for your framework

    0R - Weapon Draw: 7 Different Draw Animations

    0Resmon

    $14.00$9.80
  • Energy Skins Weapons V2 – ESX – QBCORE FiveM resource preview
    • ESX
    • QBCore
    Not for your framework

    Energy Skins Weapons V2 (vRP)

    $34.00$23.80
  • CodeM mWeaponshop FiveM resource preview
    • ESX
    Not for your framework

    CodeM mWeaponshop

    CodeM

    $9.00$6.30
  • Pepper Spray
    • ESX
    • QBCore
    Not for your framework

    Advanced Pepper Spray

    Rytrak

    $15.99$11.19
  • GFX FiveM Gun Menu
    • ESX
    • QBCore
    Not for your framework

    GFX FiveM Gun Menu

    GFX Scripts

    $14.00$9.80
  • FiveM weapon store
    • ESX
    • QBCore, vRP
    Not for your framework

    Eyes WeaponStore V2

    $18.00$12.60
  • 0r WeaponReality
    • ESX
    • QBCore, vRP
    Not for your framework

    0r WeaponReality v2

    0Resmon

    $23.00$16.10