#am i a brick?

1 messages · Page 1 of 1 (latest)

dapper fox
#

why would be adding money as an item directly

oblique willow
#

i mean, did you read the title? i thought that was how to do it when your money is an item. my main issue though is that no items are being added to players inventories

dapper fox
#

as for the other part, 2 secs

dapper fox
#

you can also try:

local success, response = exports.ox_inventory:AddItem(playerId, item.name, itemCount)
print("success", success)
print("response", response)
#

to see why its failing

oblique willow
#

only the ones in chat, they just say that the player does not have room for the items, even with an empty inventory

rich bluff
dapper fox
#

but does framework sync from item?

#

if it does, it probably shouldnt

rich bluff
#

ah if its about sync then yeah

somber sleet
#

im pretty sure require uses periods instead of /-s

#

so as rqeuire shared.config

oblique willow
#

when i do it with the period i get errors in the console saying the module could not be found, with the slash it loads. it can be done either way but in this case it seems to prefer one way over the other. you can also do

require('resource.config')

or

local config = config

there are a few different ways to import tables from other files

#

but the issue i am having is not the config loading or getting an error when an item isnt given. the config loads, and i get an error when an item is not given. the problem is that it cant give items to a person with an empty inventory, instead saying they cannot hold the item.

somber sleet
#

u do it like Config = require 'foldername.filenamewithoutextension'

#

if its the same folder u do 'filenamewithoutextension' afaik

oblique willow
#

okay well that doesnt change the fact that the config table is being imported properly the way i have it written and that it says the player cannot hold items when the players inventory is empty

#

im not trying to be rude but... the config line works as is. its something about how i am trying to give the player items that isnt working and i have no idea how to fix that part. its cool i just need an admin or someone to delete this thread and i wont ask for help anymore

somber sleet
#

what?

#

dont try to be sad for yourself this is for asking people, that was just a suggestion not a forced thing.

oblique willow
#

i cant delete it myself, i already tried

somber sleet
#

what item are you trying to give?

oblique willow
#

im no more depressed than i was before, im just too stupid to do this shit. yall got it, i will go back to buying resources and just not having functionality that other people dont sell. im a config dev. or whatever other "we are smarter than you are" insult is coming next. im done. i give up. it doesnt matter. im not smart enough. i get it

somber sleet
#

We're not saying that ur a config dev

#

this place is to get help not to be told that ur a config dev

oblique willow
#

im too stupid to even understand the attempts to help me with things that werent the problem

somber sleet
#

bro that wasnt an attempt to help, i just saw that u used a / and i just said that a period works the same.

#

Don't try to make drama out of this

oblique willow
#

its not a particular item that i cant give to the player with my resource, its any item at all, even money which doesnt weigh anything. i get an error saying the player cant hold it, even when the player has an empty inventory. i tried reading the docs for ox inventory but i dropped out of school early and never went to college

oblique willow
somber sleet
#

For the money read the docs, we dont use items here but i saw others suggested that. For the other items please check their weight.

#

It doesn't matter if u dropped out of college if you want to learn you will learn

oblique willow
#

yeah i couldnt give myself a 5 gram (or whatever the unit of measurement is) sandwich with an empty inventory and the default max carry weight set. its not about the player actually not being able to carry the item i think its about me not being able to understand how to query the players inventory or target it or whatever language i am meant to be using idk but it just doesnt anything. i cant even figure out how to read the docs about the money thing let alone implement the proper way to do it. like i said i gave up before you got here. its not about anybody bullying me in this post i get that people were trying to help me but i am just not smart enough to understand the help. i want to learn and i am trying but honestly the way most of these docs are written you have to already understand how to code before the docs can help you figure out how the scripts want the code to look

somber sleet
#

you being sad for yourself and trying to get pitty will not get you anywhere. If you won't even try to learn you will never be able to do anything.

oblique willow
#

honestly i have dedicated 5 months of my life and $3k of my money to not learning how to do this shit

somber sleet
#

YOu don't need money to learn this shit.

#

I never paid for any courses or anything and i can make a script like that.

oblique willow
#

i get it, youre better than me

somber sleet
#

No

#

I'M not saying im better, I'm saying that you dont need to spend money on this.

#

Don't try this shit on me it will not work.

oblique willow
#

oh, because i did and i still dont get it

jade reefBOT
#

Information will not be spoonfed to you.
You are expected to be able to learn and understand programming concepts.
Understand that even if you are "new to this dev stuff", we all started off with no knowledge in the space.
Just as we take our time and learn, you are advised to do the same. Here are a few links to help you start:

oblique willow
#

dont try what shit on you? you are the one saying i never tried, you know my name not my story. you are the one insisting im having a pity party, all i did was try to tell you not to waste your time because the answer is yes i am a brick. you are the one who came in here thinking you know the one way to load a config because you know the way that you have always used when that wasnt even the issue in the first place homie, dont try this shit on ME

somber sleet
#

I'm not saying you not tried 😄

oblique willow
#

sorry, "strongly implying". better?

somber sleet
#

also wtf are you talking about? I wasn't saying thats the only way to load it, i was saying that periods also work

#

Oh sorry, fuck me then

#

I'm not going to take this further, you already gave up as you said.

oblique willow
#

no fuck me. 6 months of my life just to have the same links i have failed to understand thrown at me and have someone come at me with "well if you wont even try"

somber sleet
#

WDYM you cant understand kekw

#

its words on a screen

oblique willow
#

then why cant you understand what i mean? my messages also contain words, and you are reading them off of a screen?

somber sleet
#

i do

#

im trying to help you while you only do the "i cant understand" "i already gave up" mentality shit.

#

IF you already gave up you wouldn't be here talking to me.

oblique willow
#

elseif i gave up on understanding inventory related functions
and i still want to better myself by gaining knowledge
then i would keep trying to learn other aspects of coding hoping to understand enough that what i didnt before would make sense to me
or i would eventually reach the point where i did give up on everything
end
end
end