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

Get correct label from config #21

Closed
wants to merge 1 commit into from

Conversation

RealKnoblauchbrot
Copy link

@RealKnoblauchbrot RealKnoblauchbrot commented Oct 2, 2023

Fix the issue of the vehicle label not getting correctly.

Since GetDisplayNameFromVehicleModel uses the name from the vehicles.meta and some vehicles like the "seashark", "seashark2", "seashark3" share the same name: "seashark" it won't be able to return the correct vehicle name as listed in the config.

Issue mentioning this: #20

@RealKnoblauchbrot
Copy link
Author

Tested it of course

grafik

@Arctos2win
Copy link
Contributor

nope this is not the way bcs when any other resource adds
a boat to a player his / her garage then the label of the boat will return nil if not in the config.
i will fix this issue as soon as i have time since i know a way to do this without
the need to add all labels to the config.

@@ -217,10 +217,8 @@ function DeleteSpawnedVehicles()
end

function getVehicleLabelFromHash(hash)
local model = string.lower(GetDisplayNameFromVehicleModel(hash))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep this otherwise all vehicles that aren't in the config don't have a name.

@Gellipapa
Copy link
Contributor

@Arctos2win Hi! Can you tested this?

@Gellipapa
Copy link
Contributor

@Arctos2win Hi! Any status?

@Gellipapa
Copy link
Contributor

I made another pull request and I fixed this problem, i closed this pr.

@Gellipapa Gellipapa closed this Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants