Troubleshooting
Solutions for the most common problems with More Speedgun.
Common problems and how to resolve them.
The gun is the weapon WEAPON_MORESCRIPTS_SPEEDGUN. If your inventory lists weapons as items, add it as a weapon item with exactly that name and give it to the player. Make sure more_speedgun starts after more_lib in your server.cfg and that the F8 console shows no errors when the resource starts.
The key only works while the gun is held: draw the gun first, then press the power key. If nothing happens, another resource may use the same key or the player rebound it. Open the FiveM key bindings in the game settings and look for the entry Speed gun: power on / off. You can also type the command speedgun_power into the F8 console to test it.
The key option is only the default. FiveM remembers each player's key under the name of the command (the command option), so a new default only reaches players who have not bound it yet. Players who rebind keep their binding only while the command name stays the same. Set both once before your players bind the key, because renaming the command later removes their own bindings.
Check that the gun is switched on (the power button on the model lights up), that you hold the aim control and then click, that the vehicle is within the range (300 metres by default) and in line of sight, and that it is not your own vehicle. Only vehicles are hit, pedestrians and objects are ignored. A click that hits nothing shows three dashes, so aim at the body of the vehicle and click again.
The overlay at the bottom right is hidden on purpose while the pause menu is open and comes back when the player closes the menu. If it stays hidden outside the pause menu, check that more_lib is running, because the pause menu detection comes from more_lib.
The reading is the speed over ground of the vehicle in the unit from the config (unit: kmh or mph), rounded and capped at 999. Change the unit option and restart the resource to switch units. The reading turns red above the limit option, which uses the same unit as the reading.
Red means the speed is above the limit option, green means it is at or below. If you switched the unit from kmh to mph or the other way, adjust the limit as well, because it is not converted for you.
The model screen only works with the screen option set to true. With false only the overlay at the bottom right shows the reading. If the option is true and the screen stays dark, check the F8 console for streaming errors of the resource and make sure no other resource replaces the gun model. The screen shows the reading after a measurement.
The icon comes from stream/hud.gfx. This file replaces the game's HUD file, so only one resource can stream a hud.gfx. If another resource on your server streams one, delete hud.gfx from the stream folder of more_speedgun. The gun works the same without the icon, only its slot on the weapon wheel stays empty.
The unit option in backend/config/cl_config.lua has another value than kmh or mph. Set one of the two in lowercase, save the file and restart the resource.
This is intended. The speed gun is a measuring tool, not a weapon: shooting is disabled while it is held, it has no ammo and deals no damage. With the gun switched on, aim and click to measure a vehicle.
Last updated