Screen Shot
Video Click
Performance
Idle - 0.03ms
While working (For Police)- 0.12ms
ABOUT
- INFINITY SUPPORT
- A great Idea for your Server
- Clean and understandable coding
- Fully optimized without FPS Drop
- Compatible with all ESX versions
- Easy to set up
- Open source, no IP-Lock.
- Server-synced
Functions
- Adjustable for all types of scripts (Bank Robbery , holdup …)
- Admin can set Wanted Level for each user [/setwanted]
- Admin can Check Wanted Level of each user[/checkwanted]
- Police can remove wanted level of each player[/rw [ID] ]
- Wanted stars are all in HTML
- You can set time for each users wanted level removed (And Also Offline Player)
REQUIREMENTS
- ESX
- mysql-async
Config
Config.lua
Config.removelevelcmdpolice = "rw"
Config.timeremovewanted = 10
Config.admincheckwanted = "checkwanted"
Config.adminsetwanted = "setwanted"
Config.removewantedforofflineplayer = true
Config.amountremovewantedlevelpertime = 1
Config.perms = { --You can choose multiple permission group to have access to use the UI.
['lvl5'] = true,
['lvl4'] = true,
['lvl3'] = true,
['lvl2'] = false,
['lvl1'] = false,
}
Using Wanted on other resources
- server-side: ID is source of player
local xPlayer = ESX.GetPlayerFromId(source)
local Wanted = MySQL.Sync.fetchAll("SELECT wanted FROM wanted WHERE identifier = @identifier", {["@identifier"] = xPlayer.identifier})
wanted= Wanted[1].wanted
- client-side: No need for id
local wanted= exports["atawanted"]:GetWanted()
- Adding Wanted Level (only server-side for security)
TriggerEvent("ata_wanted:addwanted", id, amount)
- Removing Wanted Level (only server-side for security)
TriggerEvent("ata_wanted:removewanted", id, amount)
Buy Tebex
Check out my other scripts here: