Ir para conteúdo
  • Cadastre-se

Encontre Mods e Recursos FiveM

8241 arquivos e posts disponíveis no banco de dados

BrunoR

Membro
  • Posts

    102
  • Registro em

  • Última visita

  • Dias Ganhos

    3

Tudo que BrunoR postou

  1. Hideki, se tem o comando pra conseguir vender os carros dentro da City ? com exceção dos VIP ?
  2. deu o erro abaixo: Prepare inexistent (VRP/getVehicle) SCRIPT ERRO: @Nation_garages/server.lua:503 attempt to get length off a nil value, [Conteúdo oculto]
  3. Hideki, Esta dando esse erro: attempt to get length of a nil value essa linha: local hasVehicle = vehInfo and #vRP.query("vRP/getVehicle", { user_id = user_id, vehicle = vehInfo.name }) > 0
  4. Na minha base tem o codigo abaixo, mais quaando utilizo diz que não tenho a chave do veiculo, sendo que retirei ele da garagem e consigo trancar e destrancar. RegisterCommand('chave',function(source, args) local user_id = vRP.getUserId(source) local keyCommands = { ["add"] = function(vehicle, id) if not vRP.getUserSource(id) then TriggerClientEvent("Notify", source, "aviso", "ID "..id.." não está online", 5000) return end local index = "key-"..vehicle.."-"..user_id if not sharedKeys[index] then sharedKeys[index] = { id } TriggerClientEvent("Notify", source, "sucesso", "Chave do veículo <b>"..vehicle.."<.b> emprestada para o ID <b>"..id.."<.b>", 5000) else for k,v in pairs(sharedKeys[index]) do if id == v then TriggerClientEvent("Notify", source, "aviso", "ID "..id.." já possui a chave desse veículo", 5000) return end end table.insert(sharedKeys[index], id) TriggerClientEvent("Notify", source, "sucesso", "Chave do veículo <b>"..vehicle.."<.b> emprestada para o ID <b>"..id.."<.b>", 5000) end end, ["remove"] = function(vehicle, id) local index = "key-"..vehicle.."-"..user_id if sharedKeys[index] then for k,v in ipairs(sharedKeys[index]) do if id == v then table.remove(sharedKeys[index], k) TriggerClientEvent("Notify", source, "importante", "Chave do veículo <b>"..vehicle.."<.b> removida do ID <b>"..id.."<.b>", 5000) return end end TriggerClientEvent("Notify", source, "aviso", "ID "..id.." não possui a chave desse veículo", 5000) else TriggerClientEvent("Notify", source, "aviso", "ID "..id.." não possui a chave desse veículo", 5000) end end, ["list"] = function() local myvehicles = vRP.query("vrp/getVehicles", {user_id = user_id}) local list = "Chaves emprestadas:" if #myvehicles > 0 then for i, veh in ipairs(myvehicles) do local vehicle = veh.vehicle local index = "key-"..vehicle.."-"..user_id if sharedKeys[index] and #sharedKeys[index] > 0 then list = list.."<br><b>"..vehicle.."<.b>: " for k,v in ipairs(sharedKeys[index]) do if k == #sharedKeys[index] then list = list..v else list = list..v..",<br>" end end end end if string.len(list) > 24 then TriggerClientEvent("Notify",source,"importante", list) end end end } if args[1] and args[1] == "list" then keyCommands[args[1]]() return end if #args < 3 or not keyCommands[args[1]] then TriggerClientEvent("Notify", source, "aviso", "Utilize .chave <b>(add.remove) (veículo) (id)<.b>", 5000) return end local vehInfo = func.getVehicleInfo(args[2]) local id = parseInt(args[3]) local hasVehicle = vehInfo and #vRP.query("vRP/getVehicle", { user_id = user_id, vehicle = vehInfo.name }) > 0 if not hasVehicle then TriggerClientEvent("Notify", source, "aviso", "Você não possui o veículo <b>"..args[2].."<.b>", 5000) return elseif not id or id < 1 or id == user_id then TriggerClientEvent("Notify", source, "aviso", "ID inválido", 5000) return end keyCommands[args[1]](vehInfo.name, id) end)
  5. Bom dia pessoal, Alguém tem o comando de emprestar chave do carro para uma determinada pessoa e também de vender por dinheiro do game ? OBS: O de vender o carro seria bacana ter uma lista dos carros que não poderiam ser vendidos, por exemplo os carros VIP. Obrigado.
  6. Boa tarde Hideki, Ele também altera aquela parte do FiveM na hora de entrar na cidade ? Seria legal também colocar esse numero de forma aleatoria, tipo: 100, 105, 115, 130. É possivel ? Abraços.
  7. De verdade eu não sei o que está acontecendo. Por ser poucas pessoas, adicionei direto no banco de dados 😉
  8. Tentei colocar só a ilha na minha cidade mais não funcionou ;( Coloquei na pasta MAPS mais quando vou na ilha ela não aparece.
  9. testei na minha city e são TOPS. A unica que não funcionou na minha foi a favelahelipagratisquebrada Abraços.
  10. Boa noite, Eu achei a tabela mais ela não grava quando eu dou o comando /skin na cidade. Fiz um paliativo e alterei o campo skin dentro da tabela manual. ;(
  11. Não tem essa tabela Hideki, Quais os campos que tem dentro dela ? e tem alguma configuração especifica na criação dela ?
  12. Hideki, consegue audar amigo ? Eu não estou conseguindo ;( Parece que precisa criar um código pra armazenar no banco de dados e fazer com que ao iniciar a cidade, ele leia essa parte, mais não consegui ;(
  13. Hoje na minha Cidade aapresentou esse erro e começou a crashar algumas pessoas (Não sei se o crash tem algo relacionado ao erro). Segue o print do erro: Segue a parte do códio da linha 64 e 98 - Linha 64 = TriggerClientEvent('cmg2_animations:cl_stop', targetSrc) Linha 98 = TriggerClientEvent('cmg2_animations:cl_stop', targetSrc) RegisterServerEvent('cmg2_animations:sync') AddEventHandler('cmg2_animations:sync', function(target, animationLib,animationLib2, animation, animation2, distans, distans2, height,targetSrc,length,spin,controlFlagSrc,controlFlagTarget,animFlagTarget) TriggerClientEvent('cmg2_animations:syncTarget', targetSrc, source, animationLib2, animation2, distans, distans2, height, length,spin,controlFlagTarget,animFlagTarget) TriggerClientEvent('cmg2_animations:syncMe', source, animationLib, animation,length,controlFlagSrc,animFlagTarget) end) RegisterServerEvent('cmg2_animations:stop') AddEventHandler('cmg2_animations:stop', function(targetSrc) TriggerClientEvent('cmg2_animations:cl_stop', targetSrc) end) ------------------------------------------------------------ -- CAVALINHO ---------------------------------------------------------------- RegisterServerEvent('cmg2_animations:sync') AddEventHandler('cmg2_animations:sync', function(target, animationLib, animation, animation2, distans, distans2, height,targetSrc,length,spin,controlFlagSrc,controlFlagTarget,animFlagTarget) print("got to srv cmg2_animations:sync") TriggerClientEvent('cmg2_animations:syncTarget', targetSrc, source, animationLib, animation2, distans, distans2, height, length,spin,controlFlagTarget,animFlagTarget) print("triggering to target: " .. tostring(targetSrc)) TriggerClientEvent('cmg2_animations:syncMe', source, animationLib, animation,length,controlFlagSrc,animFlagTarget) end) RegisterServerEvent('cmg2_animations:stop') AddEventHandler('cmg2_animations:stop', function(targetSrc) TriggerClientEvent('cmg2_animations:cl_stop', targetSrc) end)
  14. Os unicos códigos que achei referente a skin na base foram esses: Server.lua RegisterCommand('skin',function(source,args,rawCommand) local user_id = vRP.getUserId(source) if vRP.hasPermission(user_id,"admin.permissao") then if parseInt(args[1]) then local nplayer = vRP.getUserSource(parseInt(args[1])) if nplayer then TriggerClientEvent("skinmenu",nplayer,args[2]) vRPclient.setHealth(nplayer,400) TriggerClientEvent("Notify",source,"sucesso","Voce setou a skin <b>"..args[2].."</b> no passaporte <b>"..parseInt(args[1]).."</b>.") end end end end) E essa parte aqui no arquivo base.lua: function vRP.updateSelectSkin(user_id,skin) vRP.user_tables[user_id].skin = skin end local nsource = vRP.getUserSource(user_id) if(nsource~=nil)then if(GetPlayerName(nsource)~=nil)then deferrals.done("Você está bugado, reinicie o fivem!") TriggerEvent("queue:playerConnectingRemoveQueues",ids) return end end RegisterServerEvent("baseModule:idLoaded") AddEventHandler("baseModule:idLoaded",function(source,user_id,model,name,firstname,age) local source = source if vRP.rusers[user_id] == nil then local steam = vRP.getSteam(source) -- [TABELAS TEMPORARIAS BASE] -- vRP.user_tables[user_id] = {} vRP.user_tmp_tables[user_id] = {} vRP.user_sources[user_id] = source vRP.initModuleGroup(user_id,source) vRP.initMoney(user_id) -- [PEGAR DO BANCO OS DADOS] -- local sdata = vRP.getUData(user_id,"vRP:datatable") if sdata then local data = json.decode(sdata) if type(data) == "table" then vRP.user_tables[user_id] = data end end -- [CASO ESTEJA CRIANDO] -- if model ~= nil then vRP.user_tables[user_id].position = { x = tonumber(-1033.67), y = tonumber(-2733.15), z = tonumber(13.76) } vRP.user_tables[user_id].weapons = {} vRP.user_tables[user_id].colete = 0 vRP.user_tables[user_id].customization = {} vRP.user_tables[user_id].customization.modelhash = GetHashKey(model) vRP.user_tables[user_id].thirst = -100 vRP.user_tables[user_id].hunger = -100 vRP.user_tables[user_id].health = 400 vRP.user_tables[user_id].inventory = {} vRP.user_tables[user_id].groups = {} vRP.user_tables[user_id].skin = GetHashKey(model) end
  15. Boa tarde, Alguém sabe como eu faço pra após setar um usuario com determinada Skin, como faço pra toda vez que ele entrar na cidade, essa Skin não sair ?? Atualmente quando seto alguém pelo /skin "ID" "Nomedaskin" ele funciona mais se o personagem sair e voltar, retorna para skin padrão. Abraços.
  16. Resolvido! Tinha um bug na minha base com alguns comandos no arquivo base.lua e consegui resolver! 😉 A principio está funcionando 😉
  17. Boa noite, Eu ja tinha esse script na minha base e quando eu seto uma pessoa na FAC, ela consegue acessar esse painel. Caso a pessoa sai da City e retorne, ela nao consegue acessar mais. Utilizei esse script e o bug continua ;( Alguém teve esse mesmo problema ?
  18. Showwww, fico te aguardando, isso faz com que a gente perca muitos players ;(
  19. o Problema era na VPS, quem estiver com o mesmo erro, basta digitar na VPS no CMD: ping api.steampowered.com e verificar se está tudo certo! Obrigado mais uma vez Hideki. Abraços 😉
  20. Bom dia Hideki, tudo bem ? A cidade está online, porém eu não consigo tirar a exigência da Steam. Pode me ajudar ?
×
×
  • Criar Novo...

Informação Importante

Esse website utiliza Cookies, se continuar navegando você concordar na usabilidade.