Configuring the resource
We've made it simple to configure Smart Speed Signs.
We've made the config.lua file Smart Speed Signs as simple as possible so it works straight out of the box for you. However, there are still some values you might want to change so we'll talk you through them in this documentation.
Developer Mode
The first configuration value is developerMode. This is relevant for adding new locations using the /newspeedsign command on the next page, so enable that if you're planning on adding new locations (but remember to turn it off again after).
Developer mode also enables blips around the map just to allow you to see where all the locations are (they are tennis rackets) and also prints logs to the console in the event that you encounter a bug and we need assistance resolving it.
If you don't want blips around the map, make sure to disable developer mode.
Detection Distance
This value is set to 60.0 and it defines the distance that you must be within a sign in order for it to start working and displaying your speed. If you prefer the resource to be less intensive, it may be best to reduce this distance.
Please note that only one sign can work at once so setting this distance too high may mean that various signs overlap and the wrong one may be enabled when a player is driving past.
useKph / convertToKph
The useKph option should be switched on if your server uses KM/H. This allows us to get the vehicle's current speed in KPH, rather than MPH.
The convertToKph option will convert all of the speeds in the locations.json file to KPH. This may be inaccurate for your country/region, so if you want to edit them yourself you can open the locations.json file and manually edit all the speeds. If you are manually editing the speeds to KPH, you should disable this option but keep useKph enabled, allowing the resource to function correctly.
Enable faces/circles/text
Further down in the main section of the config.lua file, you'll have the ability to enable the green smile face, red sad face, red circle, green circle and the slow down text.
If you have both the red sad face and the slow down text enabled, this will flash between the two.
Trigger speed percentage
This is the percentage above the configured speed limit for each sign that is considered speeding, meaning that the sad face will appear (if enabled).
Last updated