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

Look for your database; Garage go to forriermecano and Check If everything is right installed

in your database … owned_vehicles … there is the column fourriermecano missing. install the .sql and it should work

//Edit it isnt the .sql file. look at the readme on github.
you have to ALTER your Database with this:

ALTER TABLE `owned_vehicles` ADD INDEX `vehsowned` (`owner`);
ALTER TABLE `owned_vehicles` ADD `fourrieremecano` BOOLEAN NOT NULL DEFAULT FALSE;
ALTER TABLE `owned_vehicles` ADD `vehiclename` varchar(50) NOT NULL DEFAULT 'voiture';

Hello!
Having problem with the script
By that i mean that the markers are not spawning and i cant see garages on map

Weird issue. When I put my vehicles in a public garage all the other vehicles go to the impound. I have to pay to get my vehicles out every time UNLESS I restart the server. Any ideals?

I don’t know why when i taken out the car, the garage still claim it in garage, any solution?

1 Like

how can i add more room capacity in the garage?
it said that the garage stock/room is full.
thank you

Ripe, ever figure out where to insert this code? thanks

Did this work Heady?

this issue wasnt on my server ^^

not sure why it linked that lol, but the 8 lines of code for the police and mechanic garages

exports.ft_libs:DisableArea(“esx_eden_garage_area_police_mecanodeletepoint”)
exports.ft_libs:DisableArea(“esx_eden_garage_area_police_mecanospawnpoint”)
exports.ft_libs:DisableArea(“esx_eden_garage_area_Bennys_mecanodeletepoint”)
exports.ft_libs:DisableArea(“esx_eden_garage_area_Bennys_mecanospawnpoint”)

make sure you install ft_libs and start it in your server.cfg

Any luck on fixing the impossible to enter cars? :confused:

Hi, i have problem because this eden garage has the ability to bug cars by changing the license plate
I am buying bmx
I take a local car
I change the license plate of a local car and I can have it in the garage
Do you have any ideas how to fix it?

I am using the ‘esx_jb_edem_garage’ mod and every time I try to put a car away I get this MASSIVE error!

[ERROR] [MySQL] [esx_eden_garage1] An error happens on MySQL for query "[object Object]": ER_BAD_FIELD_ERROR: Unknown column 'id' in 'where clause'
Error: (node:2360) UnhandledPromiseRejectionWarning: AssertionError [ERR_ASSERTION]: unexpected PromiseRejectEvent
    at process.<anonymous> (internal/process/promises.js:27:25)
    at <anonymous>
    at Query.db.query [as _callback] (mysql-async.js:4973:13)
    at Query.Sequence.end (mysql-async.js:280:24)
    at Query.ErrorPacket (mysql-async.js:2122:8)
    at Protocol._parsePacket (mysql-async.js:5941:23)
    at Parser.write (mysql-async.js:6198:12)
    at Protocol.write (mysql-async.js:5701:16)
    at Socket.<anonymous> (mysql-async.js:693:28)
    at emitOne (events.js:116:13)
Error: (node:2360) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a 
promise which was not handled with .catch(). (rejection id: 3)
Error: (node:2360) UnhandledPromiseRejectionWarning: Error: ER_BAD_FIELD_ERROR: Unknown column 'id' in 'where clause'
    at Query.Sequence._packetToError (mysql-async.js:244:14)
    at Query.ErrorPacket (mysql-async.js:2109:18)
    at Protocol._parsePacket (mysql-async.js:5941:23)
    at Parser.write (mysql-async.js:6198:12)
    at Protocol.write (mysql-async.js:5701:16)
    at Socket.<anonymous> (mysql-async.js:693:28)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at addChunk (_stream_readable.js:263:12)
    at readableAddChunk (_stream_readable.js:250:11)
    --------------------
    at Pool.query (mysql-async.js:4728:23)
    at Promise (mysql-async.js:4970:12)
    at new Promise (<anonymous>)
    at execute (mysql-async.js:4967:26)
    at Object.global.exports [as callback] (mysql-async.js:4985:5)
    at citizen:/scripting/v8/main.js:87:41
Error: (node:2360) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a 
promise which was not handled with .catch(). (rejection id: 4)

Can anyone help me?

OK, weird problem here…
When I buy a car from the vehicle-shop, in my DB (column vehicle) I have number-plate in following format: “plate”:"GFG 196"
In this case I can sell my car without any problems.

AFTER I visit eden2 garage, store and retrieve my car, it changes to following format: “plate”:"GFG 196 "
(Notice the space after the last digit and before the commas)
In this case I can’t sell my car anymore…

How to fix that?
Thanks in advance for any help provided!

Turbo, the script doesn’t handle less than 8 characters properly(as you’ve found). Add a trim function to the plate checks to strip whitespace from the plate and you’ll be fine.

I’m on the phone or I’d share the function I use.

OK, I surely can wait until you have access to your computer.
Thank you for your help!

Here’s the function I use:

function all_trim(s)
  return s:match"^%s*(.*)":match"(.-)%s*$"
end

Just wrap that around your plate vars when checking against something and it should work fine:

if(all_trim(cplate) == all_trim(v.plate))then
1 Like

I have sent you PM.

So im sure this tends to be a very repetitive question, but im so lost and not sure what to do here, so any help would be much appreciated! We are attempting to install the eden garage, but when its placed in the server nothing happens or shows up? Is it due to the fact we have esx garage still? Do we have to remove the base one and only use eden?