SBDPlugins / VehiclesPlus

Information about the VehiclesPlus plugin.
https://sbdevelopment.tech
Other
5 stars 2 forks source link

[FEATURE] Public (non-owned) vehicles #115

Closed ImFound closed 2 years ago

ImFound commented 2 years ago

Is your feature request related to a problem? Please describe.
That's right, thanks to the API I'm trying to make a vehicle let's say public spawned every few minutes, except that it currently serves the owner of the vehicle.

Describe the solution you'd like
I would like that you could (only via api) not have an owner of the vehicle, usable by everyone, blockable by everyone

Describe alternatives you've considered
Making a bot that stays online 24/7 but would cost me too much

stijnb1234 commented 2 years ago

Sounds like a good idea. Something was worked on for the old version, but was never implemented correctly. I will work on this for the recode. ;)

ImFound commented 2 years ago

Yeah, it's easy to make I think, you put a double constructor on spawnedvehicle class, and you put that if like playerUuid = "" it don't add the vehicle to the garage and everyone can lock it or unlock it.

stijnb1234 commented 2 years ago

Implemented! The recode now is based on the vehicles' UUID, and not on the player's UUID.

ImFound commented 2 years ago

:D waiting for the amazing update! <3