Skip to content

Conversation

@FearlessNite345
Copy link

@FearlessNite345 FearlessNite345 commented Jul 30, 2025

Improve vehreg Custom Vehicle Support

This update improves the customData system in the vehreg submodule by making fields more flexible and fixing a critical bug that prevented the data from being used properly.

Changes:

  • Made make and year optional in the customData config entries.
  • Fixed a bug where customData was accessed using customData[spawncode], but the config was structured as an array, not a key-value table. Now it correctly iterates and matches entries by spawncode.

Benefits:

  • Fixes an issue where customData was silently ignored due to improper access.
  • Adds flexibility by allowing make and year to be omitted if not needed.

Example Usage:

customData = {
    ["adder"] = {
        model = "Adder",
        make = "Truffade",
        year = 2013
    },
    ["blista"] = {
        model = "Blista"
        -- make and year are optional
    }
}

hooddarian and others added 30 commits July 11, 2025 05:05
Fixs when `enableClothingWhitelist` is true

and You are not wearing a bodycam

it would spam text chat when in a vehicle

with lights on or holding a weapon.
Removes `defaultKeyMapper` configuration option
chore(ers): Fix config comment
@Fireant456 Fireant456 changed the base branch from master to feat-functionality July 30, 2025 21:36
@Fireant456
Copy link
Contributor

Will be merged in with #69

@Fireant456 Fireant456 merged commit 47d8276 into Sonoran-Software:feat-functionality Jul 30, 2025
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.

4 participants