HM ID Gun - Configuration
In config.lua you can tailor the behaviour of HM ID Gun exactly to your needs.
Options
Section titled “Options”| Option | Type | Default | Description |
|---|---|---|---|
Config.AllowAll | boolean | false | If true, every player on the server can use the command (recommended for test servers only). |
Config.CommandName | string | "idgun" | Change the command used to enable/disable it here. |
Config.AcePermission | string | "command.idgun" | The direct ACE permission. |
Config.AllowedGroups | table | {"group.admin"} | A list of FiveM principal groups that automatically have access to the command. |
Config.DisableShootingWhileActive | boolean | true | If true, shooting is blocked while the ID gun is active. |
Config.CopyOnShoot | boolean | true | If true, a shot/click on an entity writes the info to the F8 console and clipboard. |
Config.CopyCooldownMs | number | 500 | Cooldown in milliseconds between two copy actions. |
Config.ExportVector4 | boolean | true | If true, vector4(...) is output as well. |
Config.ExportVector3 | boolean | true | If true, vector3(...) is output as well. |
Example configuration
Section titled “Example configuration”Config = {}
Config.AllowAll = falseConfig.CommandName = "idgun"Config.AcePermission = "command.idgun"
Config.AllowedGroups = { "group.admin", "group.superadmin"}
Config.DisableShootingWhileActive = trueConfig.CopyOnShoot = trueConfig.CopyCooldownMs = 500
Config.ExportVector4 = trueConfig.ExportVector3 = true