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

Clothing Function #171

Closed
wants to merge 4 commits into from
Closed

Clothing Function #171

wants to merge 4 commits into from

Conversation

Pewwww53
Copy link

Clothing as item

Clothing As items
Clothing as Item
Clothing as Item
Clothing as item
Copy link

@TKDubsta TKDubsta left a comment

Choose a reason for hiding this comment

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

Very minor changes but the prints will annoy some people. Possibly add a config for debug prints if you want them in?

@@ -28,6 +28,7 @@ local Translations = {
info = {
no_variants = "There don't seem to be any variants for this",
wrong_ped = "This ped model does not allow for this option",
wrong_gender = "This clothe is not for your gender",

Choose a reason for hiding this comment

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

Spelling

local Player = QBCore.Functions.GetPlayer(source)

if not Player.Functions.GetItemByName(item.name) then return end
print(item.info.model)

Choose a reason for hiding this comment

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

Remove debug print

local Player = QBCore.Functions.GetPlayer(source)

if not Player.Functions.GetItemByName(item.name) then return end
print(item.info.model)

Choose a reason for hiding this comment

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

Remove Debug Print

local Player = QBCore.Functions.GetPlayer(source)

Player.Functions.AddItem(item, amount, slot, info)
TriggerClientEvent('inventory:client:ItemBox', source, QBCore.Shared.Items[item], "add")

Choose a reason for hiding this comment

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

Weird indentation

Comment on lines +11 to +12
Player.Functions.RemoveItem(item, amount, slot)
TriggerClientEvent('inventory:client:ItemBox', source, QBCore.Shared.Items[item], "remove")

Choose a reason for hiding this comment

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

Weird indentation

Comment on lines +20 to +22
if not Player.Functions.GetItemByName(item.name) then return end
print(item.info.model)
TriggerClientEvent('qb-radialmenu:WearClothes', source, item, v)

Choose a reason for hiding this comment

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

Weird indentation

Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants