StationaryRadar - Beta
Description
This script allows you to set multiple stationary radars that trigger if players drive too fast.
There is also no notification right now (will be added soonish) if someone drives too fast past a radar, it will only flash. More info and upcoming features at github.
Requirements
- DisableAuth set to false on your server inside citmp-server.yml
- MySQL database
Current Features
- show / hide blips for stationary radars
- flashing radars if a player drives too fast
- permissions for who can use all these features
Commands
All commands require a permission level of 1
- /show radars - Shows yellow blips on all radar spots
- /hide radars - Hides all blips
- /set speedradar - Sets a stationary radar at your current position
- /remove speedradar - Removes the radar at your current position
Installation
- You may have to unblock the following file lib\MySql.Data.dll
- Edit the config.lua and set your database host, schema, user and password
Execute the following sql command on your database
CREATE TABLE `stationaryradar` (
`x` double(8,2) NOT NULL,
`y` double(8,2) NOT NULL,
`z` double(8,2) NOT NULL,
`maxspeed` int(11) NOT NULL
);
CREATE TABLE `stationaryradar_permissions` (
`steamid` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`permission_level` int(11) NOT NULL,
PRIMARY KEY (`steamid`)
);
Players will be automatically added to the permissions table once they enter your server.
You have to set their permission_level to 1 if they should be able to set up cams and see them in this script.
If you see any bugs, have questions or like to leave some feedback please do so.
Changelog
Beta 28/05/17
- Added /remove speedradar command
- Moved configurable settings into config.lua
Beta 27/05/17
- Initial Release