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 two 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 |
| nearestPostalExport | getPostal | the export/function called for nearest postal |
| SpeedScript | the script that contains your get speed limit script | |
| SpeedExport | the export/function called for getting speed limit | |
| [fines] | there are in MPH & are how much the fine is for speeds over | |
| 10-Over | 259 | |
| 15-Over | 284 | |
| 20-Over | 309 | |
| 30-Over | 334 | this is the base and more is tacked on for faster speeds using a formula |
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 camera faces.
SPEEDS
There are three 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
- If you have another script that gives you speed limits and it has an export for getting the speed limit that takes a vehicle's network id as a parameter, you can enter it in the settings.ini (see above)
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.