There’s an error on vehicle:EveryoneLeave() because the vehicle got deleted before.
This is how it will be printed on the server-console: https://i.imgur.com/cwqBvX4.png
More examples: at the docs page you have an example for every class and method!
I didn’t know about Luaoop library, but I don’t really need it. I just created own classes and other users doesn’t need to know how to create new classes.
Ok I like what you have done good job but I cant really understand some of the tings what do. So if you add some kind of a documentation of explanacion of the things you have added it will be great and maybe how to use them an example would be nice but still good job man
But this error in server:
local vehicle = Vehicle(true, model, -1872.7, -1273.22, -13.5, 50.0, true)
SCRIPT-WARNING [@classes/server/vehicle.lua:88:StateBag]: The entity you are trying to set StateBag doesn't exists! Maybe a onesync issue?
InvokeNative: execution failed: Tried to access invalid entity: 135429
SCRIPT ERROR: Execution of native 000000009e35dab6 in script host failed: Tried to access invalid entity: 135429
> StateBag (@classes/server/statebag.lua:24)
> Vehicle (@classes/server/vehicle.lua:88)
> handler (@DP_Wrakken/server/main.lua:20)