Here you are the video: https://streamable.com/839ld
Show me console server side and your database
I am using esx_edengaarage2. Is that what you meant by society garage?
first of all your database is completely wrong, secondly i meant society vehicles with garage 2 (last 15 lines) are society garages
hey Jager,
Thanks for the reply. That database above is not mine. Here is mine.
Yes I do use society vehicles for police where they can buy (esx_police) and for ambulance where they can also buy (esx_ambulance). I see the data for those LOST vehicles is stored in my âowned vehicleâ database. How can I remove this to make sure it just goes to the impound (Yellow circle)?
Sorry Iâm not a very experienced FiveM guy, basic knowledge only. Hopefully you can understand the above
youre database is incorrect tooâŚ
and with society garages on owner there will be written the job name instead of steamid
I see. That second screenshot is taken out of âOwned_Vehiclesâ where they buy from esx_vehicleshop. So the society job vehicle shouldnât be there in the first place. Is there a particular script I need to delete/edit to stop society bought vehicles to go into âOWNED_VEHICLESâ database. Will I also need another database for IMPOUNDED vehicles?
Hereâs my âowned_vehiclesâ database table.
appreciate your time in replying my comments!
well yes id column and job column must be deleted⌠just reinsert table or look what is different.
dans society vehicles are in owned vehicles table but instead of steam id there is name of job
which database is wrong, mine?
Both of you
which sql do i must import
sql given by default
in you script i supose?
not good either
could you give me the good code, dont find it
The differences between esx_eden_garage2 sql and my owned_vehicle database is Iâm missing index_owned_vehicle_owner. So I just add another column?
ALTER TABLE
owned_vehicles
[DONE]> ADDstate
BOOLEAN NOT NULL DEFAULT FALSE COMMENT âEtat de la voitureâ AFTERowner
,
[DONE]> ADDfourrieremecano
BOOLEAN NOT NULL DEFAULT FALSE,
[DONE]> ADDvehiclename
varchar(50) NOT NULL DEFAULT âvoitureâ,
> ADD INDEXindex_owned_vehicles_owner
(owner
)
;
After adding this is what I need to have right? Not fully understand what you mean by âinstead of steam id there is name of jobâ
Can anyone who is getting esx_jb_eden garage2 work, share his owned_vehicles sql?
How to fix that?
[ERROR] [MySQL] An critical error happens on MySQL for query "SELECT * FROM owne
d_vehicles INNER JOIN characters ON owned_vehicles.owner = characters.identifier
WHERE fourrieremecano = TRUE {=}": An item with the same key has already been a
dded. Key: id at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInser
t (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior
) [0x0015a] in <fbc4ec45371543bfba3678ebb82caf6d>:0
at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue
value) [0x00000] in <fbc4ec45371543bfba3678ebb82caf6d>:0
at MySQLAsync.FetchAll.ReaderAsync (MySql.Data.MySqlClient.MySqlCommand comman
d) [0x000e9] in <6f835765886c4fada3e5ffb1ffcd6998>:0
at MySQLAsync.Operation`1[TResult].ExecuteAsync (System.String query, System.C
ollections.Generic.IDictionary`2[TKey,TValue] parameters, CitizenFX.Core.Callbac
kDelegate callback, System.Boolean debug) [0x00169] in <6f835765886c4fada3e5ffb1
ffcd6998>:0