-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OxVehicle Changes #212
Comments
Definitly, but these require big changes. It implied that all db vehicles are registered by core at launch. |
Imo, it's preferable to stay like this and query db ourself. For me, it's better to handle all theses queries that can change by servers. Owner or Group field are not used by core, it's just a base for you to build on top of this |
Not sure why you would want to load all of the vehicles upon resource start? |
Currently, in order to get an instance of an
OxVehicle
, the vehicle must either be spawned in game by usingOx.CreateVehicle
orOx.SpawnVehicle
.Otherwise you cannot get the instance of OxVehicle.
I think it would be useful if we can use the getters such as
Ox.GetVehicleFromVin
, if not already spawned, then grab from the database, so we can access some of its functions likesetOwner
,setPlate
, etc without having to query/update the database ourselves.I've also noticed theres no way to get a list of vehicles that the owner or group owns, maybe if the
OxVehicle
class can exist without the requirement of an entity, this can also be implemented?E.G. We have a vehicle purchase system where players can put their vehicle up on the marketplace. When another player purchases the vehicle we'd need to switch the owner over, right now we have to update the database manually.
The text was updated successfully, but these errors were encountered: