qb-inventory
qb-inventory copied to clipboard
Fixes GetTrunkSize Export
Description
The export and local function "GetTrunkSize" returns a nil index when used. The problem is that [vehicleClass] is carried over from Config.TrunkSize into the new variable "trunkSize", which is not a valid index of the subtable.
This PR fixes that issue, corrects the lowercase "w", and also adds a default catch for a nil parameter.
Checklist
-
[X] I have personally loaded this code into an updated qbcore project and checked all of its functionality.
-
[X] My code fits the style guidelines.
-
[X] My PR fits the contribution guidelines.
https://github.com/qbcore-framework/qb-inventory/blob/599c2caf6cc7726ad0089e939df0aef855470590/config.lua#L52
@rhapidfyre update he branch Please
This PR has had 60 days of inactivity & will close within 7 days
This PR has had 60 days of inactivity & will close within 7 days