New Character check seems to not work anymore
RealStonerGamer opened this issue · 17 comments
i said false
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
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 ...
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
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)
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