-
Notifications
You must be signed in to change notification settings - Fork 257
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
Clothing Function #171
Conversation
Clothing As items
Clothing as Item
Clothing as Item
Clothing as item
There was a problem hiding this 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", |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weird indentation
Player.Functions.RemoveItem(item, amount, slot) | ||
TriggerClientEvent('inventory:client:ItemBox', source, QBCore.Shared.Items[item], "remove") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weird indentation
if not Player.Functions.GetItemByName(item.name) then return end | ||
print(item.info.model) | ||
TriggerClientEvent('qb-radialmenu:WearClothes', source, item, v) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weird indentation
This PR has had 60 days of inactivity & will close within 7 days |
Clothing as item