[ESX] Anti-Thief Emergency Cars – Releases

Some things you should change

You don’t need this anymore on the newer esx versions

	while ESX == nil do
		TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)

	while ESX.GetPlayerData().job == nil do

	PlayerData = ESX.GetPlayerData()

And the biggest Issue is that a modder can just run the Kickevent and put the PlayerID of a different Player in it, since you let the client choose what player to kick TriggerServerEvent('kickplayer', PlayerId).
To fix this you should remove the PlayerId / target and just Kick the Player using the sourceID like this on the Serverside:

AddEventHandler('kickplayer', function()
    DropPlayer(source, 'You Have Been Kicked Server Because Thiefing Emergency Cars')

thank you I fixed this and there may still be people like me who have to use an old esx version.

Yeah just saw that your code technically doesn’t even need it i created two pull requests accidently but in both fix some errors

1 Like

any one can make for qbcore ?

Nice, also one more thing, any chance you know who created the speedometer? It looks very good

Nice, just a few things to fix up and it would be really clean

Download the mod: https://forum.cfx.re/t/esx-anti-thief-emergency-cars/4876482

Leave a Reply

Your email address will not be published.

Subscribe to Newsletter

Give us a call or fill in the form below and we will contact you. We endeavor to answer all inquiries within 24 hours on business days.