Skip to content

Add vehicle spawning GUI and server-side handling for custom model IDs #57

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MohabCodeX
Copy link

  • Fixed an issue where out-of-range IDs like 800195116 caused MTA to respawn vehicle ID 556
  • Added ID validation to check if it's a custom model or a valid default before calling createVehicle
  • If invalid, it throws an error to prevent fallback behavior
  • Changes made in s_debug.lua and s_vehicles.lua
  • Now supports using multiple custom models on the same element ID

@Fernando-A-Rocha
Copy link
Owner

Hi @MohabCodeX thanks for your submission.
I see that you fixed the loadstring line, so it should be fine now?

Did you test now? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants