Skip to content

An app for LB Phone to receive a notification when getting close to a speed camera

License

Notifications You must be signed in to change notification settings

chrisd1997/lb-phone-flitsmeister

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flitsmeister app for LB Phone

Installation

  1. Grab the latest release from Releases
  2. Extract the zip to your resources folder
  3. Copy the ui/build/flitsmeister.png to lb-phone/ui/assets/img/icons/apps/
  4. Add the following code to your lb-phone/config/config.lua in the Config.CustomApps table:
    ["flitsmeister"] = {
        name = "Flitsmeister",
        description = "Flitsmeister is een app die je helpt om snelheidscontroles te ontwijken.",
        ui = "flitsmeister-app/ui/build/index.html",
        onUse = function()
            exports['flitsmeister-app']:SetListening(true)
        end
    }
    
  5. All done 🎉

Usage

Exports

Using the exports["flitsmeister-app"]:AddSpeedCameras() function you'll be able to add your own speed cameras to the app.

An example of how to add a speed camera is provided below:

exports["flitsmeister-app"]:AddSpeedCameras({
	[1] = {
		['Coords'] = vector3(2526.224, 2719.912, 43.38318),
		['MaxSpeed'] = 80
	}
})

Notes

App not listening for speed cameras

The app needs to be opened once before it automatically listens for nearby speed cameras.

Resource naming

Make sure the resource is named flitsmeister-app otherwise some features might not work as expected.

About

An app for LB Phone to receive a notification when getting close to a speed camera

Resources

License

Stars

Watchers

Forks