Skip to content
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

Update admin.lua #62

Closed
wants to merge 1 commit into from
Closed

Conversation

mrdigital0
Copy link

@mrdigital0 mrdigital0 commented Jul 7, 2024

Fixed where when using /admincar it would save only 8 char of the model for example it would save dominato instead of dominator this happens on all vehicles where spawn code is longer then 8 characters

Description

Checklist

  • I have personally loaded this code into an updated Qbox project and checked all of its functionality.
  • My pull request fits the contribution guidelines & code conventions.

Fixed where when using /admincar it would save only 8 char of the model for example it would save dominato instead of dominator this happens on all vehicles where spawn code is longer then 8 characters
@jrgrimshaw
Copy link

This isn't an improvement as it relies on the TextEntry to be the same as the model archetype name, which isn't always the case, and definitely will not be for addon vehicles. There is already a native for pulling the vehicle archetype name (spawn code) for the purposes of adding to the database:

GetEntityArchetypeName(cache.vehicle)

@mrdigital0 mrdigital0 closed this Jul 9, 2024
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