Yes there is actually
HOWEVER: Define “Just Basic Passenger Planes”
Because as you might have found out already (or not), there are several classes (and flight ‘behavior’) linked to ‘sizes’ of planes.
So if it’s something like a shamal kind of plane (also passenger plane ), you can for example easily change this line:
if EntityModel == GetHashKey('shamal') then
to
if EntityModel == GetHashKey('shamal') or EntityModel == GetHashKey('YourPlaneName') then
And this will instantly activate/use all the shamal settings (and expected flight behavior) to the plane you’ve added.
If you for example want it to behave more like a 747 type of plane, you change the line:
if EntityModel == GetHashKey('jet') then
to
if EntityModel == GetHashKey('jet') or EntityModel == GetHashKey('YourPlaneName') then
And your new plane will be considered a commercial jet.
And what if you want to add multiples at once? Well simple:
if EntityModel == GetHashKey('jet') or EntityModel == GetHashKey('YourPlaneName1') or EntityModel == GetHashKey('YourPlaneName2') or EntityModel == GetHashKey('YourPlaneName3') or EntityModel == GetHashKey('YourPlaneName4') or EntityModel == GetHashKey('YourPlaneName5') or EntityModel == GetHashKey('YourPlaneName6') then
I guess you’ll get the point
DO NOTE:
The JET for example is expected to fly “VERY” high (for realism), those flights are AWESOME to do and enjoy the scenic view. However it might be a bit ‘to much’ depending on what kind of routes you’re planning to do (or allow) on your server.
(Mentioning this because you said it doesn’t have to be super realistic
Before you (or others) ask:
Q: “Is there a way to let it automatically add new planes without ANY effort?”
A: Nope, that is simply not possible either. The script will need to know what variables (values) to use/trigger on what models. And because several vehicle types (including land and water) will respond to certain calls/checks made in the script, it’s just impossible to ‘auto add’ them all.
But honestly: I guess I’ve made it SUPER simple for other users to add new planes They barely have to script anything (you can’t even call that small edit ‘scripting’ i suppose ).
I hope i explained it well enough, Unfortunately I’m no longer able to help, assist or to test with codes beyond what i’m doing here. I no longer have my FiveM Server running (nor did I kept my own framework or the database).
For what I can see now, I’m not planning to return either (in regards of FiveM development that is). I will still try to help where (and when) I can, but as you can imagine my resources are a bit limited in regards to that
Regards,