Skip to content

MattiVboiii/matti-airsoft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

matti-airsoft

WELCOME! To my first ever script!

Simple & basic airsoft script made for QBCore

Features

  • 🧍 Peds for Entry/Exit & Debug
  • 🎯 qb-target/ox_target & qb-menu/ox_lib support
  • 🔔 qb-core/ox_lib notification system
  • 🚩 Polyzone/circlezone
  • ♻️ Configurable
  • 🔫 Priced Loadouts (config, random or your own)
  • 🪄 Random spawnlocations
  • 💬 Locales

Preview

Loadouts:

image image

Configurable Entry/Exit ped:

image image

Arena status notifs:

image image image

Debug prints:

image

Debug peds (to show spawn locations):

image

VIDEO PREVIEW COMING SOON

Optional map

I personally use iakkoise's Softair Map because it's lightweight and only uses GTA props

Optional guns

I personally use Localspetsnaz's Airsoft Guns Pack because they don't kill/hurt the player, they stun them.

How to install the optional guns?

Click here to find out!
1. Insert your custom guns in your server's resources and make they start in your server.cfg
2. In qb-core/shared/items.lua add this:
weapon_airsoftglock20        = { name = 'weapon_airsoftglock20', label = 'Airsoft Glock 20', weight = 1000, type = 'weapon', ammotype = 'AMMO_PISTOL', image = 'weapon_pistol.png', unique = true, useable = false, description = 'Airsoft Glock 20' },
(do this with every custom gun and change some values)

3. In qb-core/shared/weapons.lua add this:
[`weapon_airsoftglock20`]        = { name = 'weapon_airsoftglock20', label = 'Airsoft Glock 20', weapontype = 'Pistol', ammotype = 'AMMO_PISTOL', damagereason = 'Hit by a BB' },
(do this with every custom gun and change some values)

4. In qb-weapons/config.lua add this in Config.DurabiltyMultiplier
weapon_airsoftglock20        = 0.05,
(do this with every custom gun and change some values)

5. In qb-weapons/client/weapdraw.lua add this
'WEAPON_AIRSOFTGLOCK20',
(do this with every custom gun and change some values)

But if you decide not to use these guns, then the script is made so if the player is dead, they will also get teleported out of the arena.

Optional TIP

If using ps-dispatch, remember to add a NoDispatchZones location like:

[3] = {label = "Airsoft Arena", coords = vector3(2025.99, 2784.98, 76.39), length = 14.0, width = 5.0, heading = 270, minZ = 28.62, maxZ = 32.62},

This way, police won't be notified of any shots in the arena

Future Plans

  • Adding a "who killed who" system
  • Adding a leaderboard
  • More gamemodes

Dependencies

About

Simple & basic airsoft script for QBCore

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages