Introduction
A handheld speed gun: aim at a vehicle and read its speed, plate and model on a real LCD screen.
More Speedgun adds a speed gun weapon to your server. A player draws it, switches it on, aims at a vehicle and clicks. The speed, the licence plate and the vehicle model show up on the screen of the gun itself and on a small overlay at the bottom right. While the gun stays aimed at the vehicle the reading keeps updating live, and it turns red when the vehicle is faster than the limit you configured. The gun never fires, needs no database and runs on ESX and QBCore through more_lib.
Give the weapon to players and check the weapon wheel icon
The gun is the weapon WEAPON_MORESCRIPTS_SPEEDGUN. If your inventory lists weapons as items, add it as a weapon item. The resource also streams a weapon wheel icon (stream/hud.gfx) that replaces the game's HUD file, so only one resource on the server can stream a hud.gfx. If another resource already does, delete ours: the gun works without it, only its slot on the weapon wheel stays empty.
Features
- Weapon with its own 3D model and a working LCD screen that shows speed, unit, plate and vehicle model
- Overlay at the bottom right of the screen with the same reading, hidden automatically while the pause menu is open
- Power on and off with a key (G by default). Players can rebind it in the FiveM key bindings
- Aim with the aim control and click to measure. In a vehicle it works with the vehicle aim and attack controls, so passengers can measure too
- Live tracking: while aim is held and the crosshair stays on the vehicle, the reading keeps updating. A miss shows three dashes
- Green when the vehicle is at or below the limit, red when it is above. The limit and the unit (km/h or mph) are configurable
- Configurable range (300 metres by default). Only vehicles are hit, your own vehicle is ignored
- No database, no SQL and no framework setup. The gun cannot fire, drawing or putting it away always switches it off
Requirements
more_libresourcerequiredShared library of the More Scripts resources. Detects ESX or QBCore and must start before more_speedgun. It also runs the update check.
WEAPON_MORESCRIPTS_SPEEDGUNweaponrequiredThe weapon the player holds. Only needed as an item if your inventory lists weapons as items.
Last updated