qb-inventory icon indicating copy to clipboard operation
qb-inventory copied to clipboard

Fixes GetTrunkSize Export

Open rhapidfyre opened this issue 1 year ago • 4 comments

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. image

  • [X] My code fits the style guidelines.

  • [X] My PR fits the contribution guidelines.

rhapidfyre avatar Nov 09 '23 19:11 rhapidfyre

https://github.com/qbcore-framework/qb-inventory/blob/599c2caf6cc7726ad0089e939df0aef855470590/config.lua#L52

GhzGarage avatar Nov 10 '23 01:11 GhzGarage

@rhapidfyre update he branch Please

amantu-qbit avatar Dec 25 '23 22:12 amantu-qbit

This PR has had 60 days of inactivity & will close within 7 days

github-actions[bot] avatar Feb 24 '24 15:02 github-actions[bot]

This PR has had 60 days of inactivity & will close within 7 days

github-actions[bot] avatar Apr 30 '24 15:04 github-actions[bot]