TanguyOrtegat / esx_jb_eden_garage2

41 stars 50 forks source link

after restart server #12

Closed Blackwave78 closed 5 years ago

Blackwave78 commented 5 years ago

after a restart server cars are no longer in the garage and are marked as exit

XxFri3ndlyxX commented 5 years ago

Check in the for `-- Fonction qui change les etats sorti en rentré lors d'un restart -- AddEventHandler('onMySQLReady', function()

-- MySQL.Sync.execute("UPDATE owned_vehicles SET state=true WHERE state=false", {})

-- end) -- Fin Fonction qui change les etats sorti en rentré lors d'un restart`

So it would look like

-- Fonction qui change les etats sorti en rentré lors d'un restart AddEventHandler('onMySQLReady', function()

MySQL.Sync.execute("UPDATE owned_vehicles SET state=true WHERE state=false", {})

end) -- Fin Fonction qui change les etats sorti en rentré lors d'un restart

uncomment that and it should make it so on restart they go back to the garage. or use esx_jb_stopvehicledespawn so vehicle don't despawn and they they at last saved location.

Blackwave78 commented 5 years ago

thanks