VORPCORE/vorp_inventory-lua

New Character check seems to not work anymore

RealStonerGamer opened this issue · 17 comments

with new vorp_character-lua and vorp_inventory the check for if your a NewPlayers = true is not working they can all trade items weps and money or gold

this was on a character that was made 2 mins before the trade

image

image
needs to be false

image
if its false cant give

it is true

image
that is what im saying

it was set true and the line says set to true to stop giveing

image

its true and still can give

i said false

if you want them not to be able to give items or money as new players needs to be true

but as you see in the code
image
all is good if its true it will work

it's not working though that is what I'm saying ... i have it set to true and i have tried setting it to false and its still not working it always allows to trade i have tried set to true and tried set to false bot do not work ... so its not working

if you want them not to be able to give items or money as new players needs to be true

but as you see in the code image all is good if its true it will work

this is what im saying it looks fine but its not working...

this just makes no sense to me it looks like it should be fine but dose not seem to be working ... is the trigger from 'vorp_Character' when you make your character is working right ? you think that might be it ?

yes i see its set fine but again then why is it not working when set in config NewPlayers = true
?

ill video it when i can tonight and show you what i mean ...

image image

i added a print and it come back nil
and to make sure it was triggering
image
image
image

so i added a wait(2000) here and now its not nil so i think its just runing to fast befor the ID is made

image


AddEventHandler('vorp_NewCharacter', function(source) 	
	local _source = source
	Wait(2000)                   -- new wait need to beable to get the charid 
	local Character = Core.getUser(_source).getUsedCharacter
	local charid = Character.charIdentifier
	print(charid)
	table.insert(newchar, charid)
	Wait(timer * 60000)
	for k, v in pairs(newchar) do
		if v == charid then
			newchar[k] = nil
		end
	end
end)

image

so we just need a wait(2000) added and the check will work fine for money and items are working fine now but the WEAPON's can be given still

so this fixs again only items and money not weapons can still be given when they should not be .

thanks i have added a wait but in characters before sending that event to make sure char is created in time

sounds good now just need to figure out why you can still trade weapons

it was missing it was added now

All is working fine thanks a lot ! this is good to close now man