esx_garaging is a new way to store your vehicles across the map. It allows players to buy garages at different locations and with different sizes. They can then enter there garage get there vehicles out. It also allows player to return there vehicles via the laptop inside each garage.
Configuration
This resource as a very extended configuration. It makes it possible to add/remove garage types. Add/remove garage locations. And change the prices that the garages are sold for!
I ask this cause I have a server with 300+ people, they like the idea of seeing their cars like this, it gives more RP feeling, but I dont want to have 300 garages all over the map lol
Yes. Every garage can be bought for each player seperately. This means that 10 players can have the same garage and be inside it all at once. You conât like âdoubleâ buy a garage.
I am currently using this on my own (dutch) server with around 30 players at once. I am nog experiencing and lag issues so i think you should be good with many people using it.
You will have to rewrite the garage saving bit. Right now it saves it on the players steam id. I think you can use the steam and character id to achieve the multi character part.
Okey Thank you, I still have one question, why can you park vehicles even though you havenât bought the garage?
And there is still a problem if there is a vehicle outside and the exit point is blocked, you can still park your vehicle and all cars are upside down xD
I mean I can park in all garages then the car is inside and when I go out I donât get it anymore because I have to buy the garage now xD
Fixed the bug where you could park vehicles even if you donât own the garage. You wil just have to download the latest version and it should be fixed!
Unfortunately I did not understand what you mean, what should I change here?
function CheckGarageOwned(GarageID)
local Owned = false
if GarageID == 1 then
Owned = true
else
for Index, CurrentGarage in pairs(PlayerGarages) do
if CurrentGarage.id == GarageID then
Owned = true
end
end
end
return Owned
function CheckGarageOwned(GarageID)
local Owned = false
for Index, CurrentGarage in pairs(PlayerGarages) do
if CurrentGarage.id == GarageID then
Owned = true
end
end
return Owned
end