No matter what we set primary key as even with everything unchecked as allow null in vehicle shop this happens
Also confusedâŠWhere? forgive me
[ERROR] [MySQL] [esx_jb_eden_garage2] An error happens on MySQL for query â[obje
ct Object]â: ER_BAD_FIELD_ERROR: Unknown column âidâ in âwhere clauseâ
Interesting any ideas?
Yes read other peoples comment that had same issue as you
Got it thanks,
I have this 3 errors when I try to store a car in a garage.
This is how my âowned_vehiclesâ table looks like:
Can someone please help me fix this?
Look at what other asked and you ll find solution
Does anyone have an issue with the carâs being impounded the minute you enter them into the garage? Then when you pay the impound fee, re-enter the car into the garage, it getâs impounded AGAIN? Help please!
ERROR] [MySQL] An error happens on MySQL for query âUPDATE owned_vehicles SET state =@state WHERE id=@id {@state=False}â: Unknown column âidâ in âwhere clauseâ
toujours le meme problemes lorsque je sort le vehicules et lorsque je tente de rentrer le vehicules rien ne se produit
MĂȘme erreur que les autres. La sollu Ă dĂ©jĂ Ă©tĂ© donnĂ© plus haut
serieux ? je lâai meme aps vu⊠pourrais tu me la donner ?
50 previous messages were about your problem
nope il y a rien dâĂ©cris
Hello ,
Pour tous simplement enlever tous ces erreur MySQL !
Changer tous simplement tous Les " id " en " plate " cotĂ© server (server.lua) du script au lieu dâajouter une Colonne Id et ne plus avoir la totalitĂ© de script fonctionnel !
Voila tous je partage ce que pour moi cela reste le plus facile et le plus complet !
Cordialement Sky ^^
Hello, for those peoples who has the latest version of es_extended and esx_jb_eden_garage2 and who are not able to make it work. First of all here is the error :
(Thanks x1mart for the screen, go check his post to be sure that itâs the same error)Iâve found a fix(temporary), just before this, be sure to save your db (export a sql file), the owned_vehicles table must be like this :
If you are too lazy, here is the sql request :
CREATE TABLE IF NOT EXISTS `owned_vehicles` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`owner` varchar(30) NOT NULL,
`state` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Etat de la voiture',
`plate` varchar(12) NOT NULL,
`vehicle` longtext,
`fourrieremecano` tinyint(1) NOT NULL DEFAULT '0',
`vehiclename` varchar(50) NOT NULL DEFAULT 'voiture',
PRIMARY KEY (`id`),
KEY `vehsowned` (`owner`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4;
Then go in [essential]/es_extended/client/functions.lua at line 644 change this :
plate = ESX.Math.Trim(GetVehicleNumberPlateText(vehicle)),
to this :
plate = GetVehicleNumberPlateText(vehicle),
Then restart, delete cache folder ⊠My vehicle shop work correctly with this btw no probem with eden_garage2 !
Hope it helps you
am i just really stupid atm i cant find where to put these lines anywhere
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â)
client sided where you take you duty
In client.lua line 179
function(data2, menu2)
if data2.current.value == "get_vehicle_out" then
if (data.current.value.state) then
menu2.close()
Should add menu.close() so first menu closes after spawning a vehicle. Preventing the player from spawning multiple vehicles intentionally or accidentally.
function(data2, menu2)
if data2.current.value == "get_vehicle_out" then
if (data.current.value.state) then
menu.close()
menu2.close()
Great script!!
One of my players reported me a dupe bug I ll fix it on GitHub