Installation

How to install and set up More Speedgun on your server.

Follow these steps to get More Speedgun running. There is no database to import.

  1. 1

    Download the resource

    Extract the resource folder more_speedgun into your server's resources folder. Make sure more_lib is installed as well, it is the only dependency. The folder must keep the name more_speedgun.

  2. 2

    Configure the resource

    Open backend/config/cl_config.lua and set the unit (kmh or mph), the limit above which the reading turns red, the range in metres, the power key and the weapon name. Every option is explained on the Configuration page. The defaults work without changes.

  3. 3

    Add the weapon to your inventory

    The speed gun is the weapon WEAPON_MORESCRIPTS_SPEEDGUN. If your inventory lists weapons as items, add it as a weapon item with that name. Then give it to the players or jobs that should use it, for example police. Without the weapon in the player's hands nothing from this resource shows.

  4. 4

    Check the weapon wheel icon

    The resource streams stream/hud.gfx, which adds the speed gun icon to the weapon wheel. This file replaces the game's HUD file, so only one resource on the server can stream a hud.gfx. If another resource already streams one, delete hud.gfx from more_speedgun/stream. The gun works the same without it, only its slot on the weapon wheel stays empty.

  5. 5

    Start the server and create the entries

    Add the ensure lines below to your server.cfg. more_lib has to start before more_speedgun. Restart the server, then give yourself the weapon, draw it and press G to switch it on.

server.cfg
1ensure more_lib2ensure more_speedgun

Things to know

Only backend/config/cl_config.lua and backend/locale/en.lua are editable, every other Lua file is encrypted. The key binding is registered under the name in the command option: players keep a rebound key only while that name stays the same, so set it once before your players bind it. The resource reports its version to more_lib, which runs the update check for you.

Last updated