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

Server event to update mismatched vehicle types list #1025

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Scullyy
Copy link

@Scullyy Scullyy commented Jan 17, 2025

  • Adds server event to update the mismatched vehicle types list, this removes the requirement to update the list every time you update your artifacts.
  • Moves mismatched types to server due to being required for the event to work, event needs to be server sided to prevent abuse.
  • Tested on b3258 with the latest artifacts and txAdmin version as of this PR and working.

Example usage:

TriggerEvent('txAdmin:menu:addMismatchedTypes', {
    caddy3 = 'automobile',
    trailersmall2 = 'trailer',
    scrap = 'automobile',
    tractor3 = 'automobile'
})

- Adds event to update the mismatched vehicle types list.
- Moves mismatched types to server.

Example usage:

```lua
TriggerEvent('txAdmin:menu:addMismatchedTypes', {
    caddy3 = 'automobile',
    trailersmall2 = 'trailer',
    scrap = 'automobile',
    tractor3 = 'automobile'
})
```
@Scullyy Scullyy requested a review from tabarra as a code owner January 17, 2025 21:16
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.

1 participant