timnboys / StationaryRadar

Allows you to set up speedcams wherever you want. Cops will receive a message if a player is too fast.

Home Page:https://forum.fivem.net/t/beta-stationaryradars-28-05-17/21996

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

StationaryRadar

Description

This script allows you to set multiple stationary radars that trigger if players drive too fast.

preview1 preview2

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 use this script.

About

Allows you to set up speedcams wherever you want. Cops will receive a message if a player is too fast.

https://forum.fivem.net/t/beta-stationaryradars-28-05-17/21996

License:MIT License


Languages

Language:Lua 100.0%