mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 20:01:35 +00:00
Major improvements, see desc
- Fixed selling same vehicle multiple times - Fixed selling <no> vehicle - Major security improvements - Removed buying vehicle for society - Code cleanup - Fixed depopping vehicle not working (not respecting network owner)
This commit is contained in:
+2
-2
@@ -19,7 +19,7 @@ function GeneratePlate()
|
||||
generatedPlate = string.upper(GetRandomLetter(Config.PlateLetters) .. GetRandomNumber(Config.PlateNumbers))
|
||||
end
|
||||
|
||||
ESX.TriggerServerCallback('esx_vehicleshop:isPlateTaken', function (isPlateTaken)
|
||||
ESX.TriggerServerCallback('esx_vehicleshop:isPlateTaken', function(isPlateTaken)
|
||||
if not isPlateTaken then
|
||||
doBreak = true
|
||||
end
|
||||
@@ -66,4 +66,4 @@ function GetRandomLetter(length)
|
||||
else
|
||||
return ''
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user