[RE-RELEASE] esx_eden garage2: 3 in 1 garage

does anyone have a portuguese lua file for it?
“br”

Hello I have an error and I can’t find how to fix it thank you for your help

esx_jb_eden_garage2\client\main.lua attempt to call a nil value (field 'Trim')
1 Like

hi,
I have a problem with this script. When I recover a car from the yellow marker it can duplicate the car, I mean if I have it out it let me get another copy. Its problematic cause its allowing to duplicate trunck items

This is the part of the code that should check if the car is phisically in the server

if data.current.action == 'fourrieremecano' then
                ESX.ShowNotification(_U('see_police_mechanic'))
            elseif data.current.action ~= nil then
                local doesVehicleExist = false
                for k,v in pairs (carInstance) do
                    if ESX.Math.Trim(v.plate) == ESX.Math.Trim(data.current.plate) then
                        if DoesEntityExist(v.vehicleentity) then
                            doesVehicleExist = true
                        else
                            table.remove(carInstance, k)
                            doesVehicleExist = false
                        end
                    end
                end
                if not doesVehicleExist then
                    ESX.TriggerServerCallback('eden_garage:checkMoney', function(hasEnoughMoney)
                        if hasEnoughMoney then
                            menu.close()
                            SpawnVehicle(vehicleProps, garage, KindOfVehicle)
                        else
                            ESX.ShowNotification(_U('not_enough_money'))
                        end
                    end, Config.Price)
                else
                    ESX.ShowNotification(_U('cannot_take_out'))
                end

not working for me can somone help

yh what is the problem??

fixed it dont worry

i can’t change the name of the car in the garage. when I press submit nothing happens. and then I can’t use any more keys. i can only use alt f4 and close it all down
help?

in what lines?

I have the exact same problem. Did it manually from the database and works, but the in-game function doesn`t. You found fix or still searching?

@Jager_Bom I wanna ask you if there’s a way to make cars that are in the police impound unable to be gotten in the normal impound yellow circle. I think i saw it somewhere but after 2 hours of reading everything on this page i couldn’t find it so i decided i’ma ask.

Very nice thanks.

I got this problem i dont know how to fix it! The script is working. The only problem is that i cant park in my car.

1 Like

Hi! Do you still have it? Could you send me a PM with the instructions or the code in a pastebin? Thanks ! :smiley:

Hello, excuse me i would like to add society garage, i have add this

TriggerEvent(“esx_eden_garage:EnableSocietyGarage”, “bucheron”, true)

Like this :

if Config.MaxInService ~= -1 then

TriggerEvent('esx_service:activateService', 'bucheron', Config.MaxInService)

end

TriggerEvent(‘esx_phone:registerNumber’, ‘bucheron’, _U(‘bucheron_client’), true, true)

TriggerEvent(‘esx_society:registerSociety’, ‘bucheron’, ‘Bucheron’, ‘society_bucheron’, ‘society_bucheron’, ‘society_bucheron’, {type = ‘private’})

TriggerEvent(“esx_eden_garage:EnableSocietyGarage”, “bucheron”, true)

But i can’t see the marker and store vehicule
Thanks,

does this work with esx_advancedvehicle shop

it is already a feature build in, but you need to use my system of impound, not the basic script of police impound.

that is your error :slight_smile:

what native is that ?

you need to acivate it when going on duty :slight_smile: so wrong place you put it

You ahve some errors client/server sided ?

normally it should check it, you have a video how you’ve done it ?

before storing the vehicle, check how much cars the guy has in his garage

normally it should not :thinking: how is your database ?

so is there any solution? same error, for some player works aftert spamming E (having anyways the error on f8) to others doesn’t deposit and shows the error

bro i changed my garage script to adnvancedgarage
this garage is outdated thats why we have this problem :smiley:
its using old natives and when you run it on the 2060 version this script gives errors

thanks

1 Like

But there you can duplicate cars right? Have you fixed this?