Whats up y’all :wave:

To have fun the brand new tuners replace, I made a decision to create a small-ish pace digital camera useful resource to check your new automobiles.


Dependencies:


Options:

  • Configurable pace digital camera identify, coords and minimumSpeed. (minSpeed is calculated utilizing GetEntitySpeed(), you will notice why in a second)
speedtraps = {
    {identify = "68th Satan", x = 880.364, y = 2698.003, z = 40.255, minSpeed = 10.0},
    {identify = "Sandy Driveby", x = 1212.397, y = 3536.227, z = 34.568, minSpeed = 22.35},
    {identify = "Tongva Valley Spy", x = -1511.871, y = 1445.777, z = 120.061, minSpeed = 22.35},
    {identify = "Paleto Issues", x = -110.463, y = 6266.835, z = 30.543, minSpeed = 22.35},
}

Downsides:

  • I’ll most certainly not replace this script, until I want to repair a bug.
  • I kinda counsel re-writing the server half. Particularly the every little thing associated to database loading / saving, since I didn’t give a lot thought into it.

Including a brand new pace digital camera:
Simply add a brand new row within the speedtraps desk:

 {identify = "Digital camera Identify", x = 0.0 --[[xCoord]], y = 0.0 --[[yCoord]], z = 0.0 --[[zCoord]], minSpeed = 10.0 --[[float. Is the speed that you get with GetEntitySpeed()]]},

Intercepting a “rushing violation” occasion:
“lslSpeedtrap.Got_A_Runner” occasion will set off on the server-side each time a consumer passes by the pace digital camera and exceeds the rushing restrict.

AddEventHandler("lslSpeedtrap.Got_A_Runner", operate(_trapid, _speed)
native src = supply
--[[
source = player id
_trapid = speed camera id. First ID is 1!
_speed = GetEntitySpeed() of the player.
]]
finish)

Get It!



Looking for paid scripts? Click here