Speed Zone Camera
POPULAR LINKS
- BUY IT! Purchase Speed Zone Camera from BigDaddyScripts.com
- SERVER.LUA How to use the included server.lua with BigDaddy Scripts to set up framework integration for money functions
{:links-list}
INSTALLATION
- Open the downloaded ZIP product file and drop the folder in it somewhere in your resources folder.
- Add your product key (get it here) to the
settings.inifile - Add
start BigDaddy-SpeedZoneCamerato yourserver.cfg.
DO NOT RENAME THE FOLDER.
If you change the name of the folder it will not function correctly so leave the name as it is.
{:is-danger}
CONFIGURATION
| SETTING | DEFAULT | DESCRIPTION |
|---|---|---|
| [licensing] | ||
| key1 | none | This is where you put your product key |
| [settings] | ||
| useMoney | false | Set this to true if you want to integrate a money resource when a fine is issued |
| useMPH | true | true = MPH false = K/MH |
| Leave the next value blank if you just want to use a postals.json in the root of this script instead | ||
| nearestPostalScript | BigDaddy-HUD | the script that contains your nearest postal script. It MUST have an export called getPostal to work |
| [fines] | how much the base fine is for speeds over | |
| 10-Over | 259 | this is the base and more is tacked on using a formula |
| 15-Over | 284 | this is the base and more is tacked on using a formula |
| 20-Over | 309 | this is the base and more is tacked on using a formula |
| 30-Over | 334 | this is the base and more is tacked on using a formula |
| FormulaPerOver | 3 | amount per MPH or KM/H over that will be added to fine |
NOTE:
If someone passes a camera at more than 30 MPH over the limit, it fines them and looks for emergency vehicles within a three mile radius and sends a message with the license plate of the offending vehicle. It uses vehicle classes to determine which are emergency vehicles. If you have custom police cars and if they are not classified as emergency vehicles by the game (incorrect setup) then they will not get notified. Also, ambulances and fire trucks could get notifications since they are classified as emergency vehicles.
CAMERA LOCATIONS
CameraLocations.json This is a datafile with all the locations where cameras will spawn and function. It comes with 30 locations already configured on the highways throughout the map. If you want to change/add to them there are a couple of things to know. If you use the dev tools or txadmin to get coords for where to place the camera, subtract one from the Z to make sure the camera sits on the ground. Also, the street name in each data item MUST match what the game says the player is on as it passes the camera or it will not function. W = heading the object faces.
SPEEDS
There are two ways to get the speed limit.
- The CameraLocations.json has speeds built into it. You can set speeds per camera
- If you own the BigDaddy-PostedSpeed script it will naturally use those speeds
POSTALS
If you are not using a nearest postal script (set in the settings.ini above) then you can use a postals.json file instead.
Postals.json This is the standard postals data file that many scripts use. It needs to match the map you are using so pick the right one. I've included three different postal files so make sure you use the correct one and rename it to Postals.json and place it in the folder.