Just use a trim function for the plate match to remove the whitespace. It resolved the plate match issues in my eden_garage completely.
function all_trim(s)
return s:match"^%s*(.*)":match"(.-)%s*$"
end
ESX.RegisterServerCallback('eden_garage:stockv',function(source,cb, vehicleProps, veh)
local isFound = false
local _source = source
local xPlayer = ESX.GetPlayerFromId(_source)
local vehicules = getPlayerVehicles(xPlayer.getIdentifier())
local cplate = vehicleProps.plate
-- THIS DUMPS A VALID ARRAY
--print('veh: ',dump(veh))
for _,v in pairs(vehicules) do
if(all_trim(cplate) == all_trim(v.plate))then
Where i drop ???
exports.ft_libs:EnableArea(âesx_eden_garage_area_police_mecanodeletepointâ)
exports.ft_libs:EnableArea(âesx_eden_garage_area_police_mecanospawnpointâ)
exports.ft_libs:EnableArea(âesx_eden_garage_area_Bennys_mecanodeletepointâ)
exports.ft_libs:EnableArea(âesx_eden_garage_area_Bennys_mecanospawnpointâ)
I donât understand wour ReadMe.md
if you want the impound of police and mecano to work, paste those lines when you take your duty
took a couple of days looking for the solution, making code and I do not get that when I put in the menu of police and mechanic to seize, I do not get this:
Is there a way to hide certain blips and markers to make an undercover garage for mafia, gang etc. ?
I tried to make an if statement in esx_jb_eden_garage2_cl but, its crashing the script.
I have an issue where, whenever I open the esx eden garage or to be honest stuff like es_admin also after I try to close out it will close or either stay open with the cursor still on and its like frozen.
Hi, i use first version of esx_eden_garage but the problem is vehicle always impounded after few minutes. Is there anyone know how to fix this? iâve read previous comment but still no idea to find solution.
Please help, thanks
When i buy a car from car dealer it takes my money but i dont get the car to my garage. When i put my car into garage. The car gets automatically impounded