Configuration

Every setting of More Speedgun in cl_config.lua and the locale file.

Every option is documented below. The settings live in backend/config/cl_config.lua and the label of the key binding in backend/locale/en.lua. Both files stay editable after the escrow encryption. Restart the resource after you change a value.

MS.Localeen
Language of the texts. Only the label of the key binding is translated. Language files live in backend/locale. To add a language, add a file there and set its name here.
MS.Locales{}
Table the locale files fill with their texts. Leave it empty.
MS.Settings.dev_modefalse
Turns on debug output for developers. Keep it false on a live server.
MS.Settings.load_delay3000
Milliseconds the client waits after joining before the speed gun starts. Raise it if your server loads slowly.
MS.Settings.refresh150
Milliseconds between the checks whether the player has picked the gun while it is not held. While it is held the resource checks every frame, so the gun reacts instantly. Lower values react a little faster but cost more.
MS.Settings.weaponWEAPON_MORESCRIPTS_SPEEDGUN
Name of the weapon that works as the speed gun. Keep the default unless you changed the weapon files in the metas folder.
MS.Settings.unitkmh
Unit of the reading: kmh or mph. Any other value stops the resource with the error MS.Settings.unit must be kmh or mph.
MS.Settings.limit100
Speed in the chosen unit above which the reading turns red. At or below the limit it stays green.
MS.Settings.range300
How far the gun reaches, in metres. Only vehicles in line of sight are hit.
MS.Settings.commandspeedgun_power
Name of the power command behind the key. Players who rebind the key keep their binding only while this name stays the same, so set it once before your players bind it.
MS.Settings.keyG
Default key that switches the gun on and off while it is held. Players can rebind it in the FiveM key bindings.
MS.Settings.screentrue
Shows the reading on the screen of the gun model and lights its power button and sight. With false the model stays dark and only the overlay at the bottom right shows the reading.
key_power (backend/locale/en.lua)Speed gun: power on / off
The label of the power key in the FiveM key bindings. This is the only text of the resource.
stream/hud.gfxstreamed
Adds the speed gun icon to the weapon wheel. It replaces the game's HUD file, so delete it if another resource on your server already streams a hud.gfx.

Last updated