Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.

Conversation

@Rav3n95
Copy link
Contributor

@Rav3n95 Rav3n95 commented Dec 24, 2024

No description provided.

@Rav3n95
Copy link
Contributor Author

Rav3n95 commented Dec 24, 2024

Make sure you guys test it, I was not able to reproduce the issue.

Discord topic

Copy link

@ChristianBDev ChristianBDev left a comment

Choose a reason for hiding this comment

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

All looks good within the naked eye, fix spelling issues and then resubmit and I will test

local cash = char:GetData("Cash")
local entityFrom = LoadedEntitys[tonumber(data.invTypeFrom)]
local entityTo = LoadedEntitys[tonumber(data.invTypeTo)] -- Unused variable - remove it?
local targetInvWeigth = Inventory.Items:GetWeights(data.ownerTo, data.invTypeTo) -- Target inventory current weight

Choose a reason for hiding this comment

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

Mispelled targetInvWeigth

local entityTo = LoadedEntitys[tonumber(data.invTypeTo)] -- Unused variable - remove it?
local targetInvWeigth = Inventory.Items:GetWeights(data.ownerTo, data.invTypeTo) -- Target inventory current weight
local targetInvCapacity = getCapacity(data.invTypeTo, data.vehClassTo, data.vehModelTo, data.capacityOverrideTo) -- Target inventory capacity
local targetInvFreeCapacity = targetInvCapacity - targetInvWeigth -- Target inventory free capacity

Choose a reason for hiding this comment

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

Mispelled targetInvWeigth

local targetInvWeigth = Inventory.Items:GetWeights(data.ownerTo, data.invTypeTo) -- Target inventory current weight
local targetInvCapacity = getCapacity(data.invTypeTo, data.vehClassTo, data.vehModelTo, data.capacityOverrideTo) -- Target inventory capacity
local targetInvFreeCapacity = targetInvCapacity - targetInvWeigth -- Target inventory free capacity
local itemWeigth = data.countTo * itemsDatabase[data.name].weight -- Item weight * count

Choose a reason for hiding this comment

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

Same here itemWeigth

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants