Jump to content

Motar2k

Members
  • Posts

    80
  • Joined

  • Last visited

Everything posted by Motar2k

  1. La contraseña no puedes verla ya que se encuentra hasheada, ahi mismo en el internal.db se encuentran esos datos. Tambien puedes obtener las cuentas mediante la funcion getAccounts()
  2. Te recomiendo sublime text, ya que para este existen herramientas creadas por usuarios de la plataforma, por ejemplo el autocompletado que mencionas. @Svartskogensi te animas a usarlo aqui te dejo el link de la extencion:
  3. Que tal @Fed3x_xD nececito mas detalles para poder ayudar, el EVENTO que "avisa" cuando un jugador choca con un marcador, se encuentra en clientside o serverside? si desconoces estos datos revisa el meta.xml de tu resource y ahi saldra el nombre del archivo y su tipo.
  4. No es recomendable, ya que de igual manera eso no evitar el spamneo de autos.
  5. Motar2k

    necesito ayuda

    Que tal @iann en la lista de ACL del admin panel estan los permisos de cada grupo en el ACL, ahi puedes modificarlos
  6. El problema esta en que creas la luz con la misma variable, entonces cuando se crea otra se destruye la anterior y se crea una nueva Revisa este otro post para que te des una IDEA de como crear una "variable" para cada jugador
  7. No se arreglo lo de spawnear mas de auto?
  8. Motar2k

    [HELP] error

    Apparently you call the function but some error occurs, verify that the arguments you send to the function "mysql: insert" function are correct
  9. @Taigas Apparently the values are not correct, use inspect to verify the data in the table
  10. @Raxzen Que tal, modifique tu codigo del serverside, el codigo no esta probado. --serverside local vehiculos = {} function generar_auto(vehiculo,posx,posy,posz,player) if vehiculo and posx and posy and posz then if not vehiculos[player] or not isElement(vehiculos[player]) then vehiculos[player] = createVehicle(vehiculo,posx,posy,posz) outputChatBox("Auto creado",source) else outputChatBox("Ya tienes un auto", source) end end end addEventHandler("onPlayerQuit", getRootElement(), function() if vehiculos[player] and isElement(vehiculos[player]) then destroyElement(vehiculos[player]) vehiculos[player] = nil end end)
  11. https://community.multitheftauto.com/index.php?p=resources&s=details&id=15572
  12. La funcion vehicle_fire no se si funciona para todos los vehiculos, pero al parecer estas creando un proyectil en la posicion del shamal, pero no estas asignando un destino, prueba jugar con los argumentos de la funcion, en lo que ami respecta se ve bien
  13. @DaeRoNz Fixed by thisdp try again Renember use command: updatedgs
  14. How can I get the bass from a sound. I understand that I have to use getSoundFFTData, but how can I apply it.
  15. the resource is not compiled, you can check the code and adapt it on your server
  16. No esta testado hojillas = {}; cigarros = {}; timers = {}; function crearHojilla(player) if not isPedInVehicle(player) then if getElementData(player, "hojillas") and hojillas[player] == nil and cigarros[player] == nil then hojillas[player] = createObject(model,x,y,z);--creando objeto y almacenandolo bindKey(player, "F","down", crearCigarro);--creando bind para llamar funcion crearCigarro bindKey(player, "X","down", pararWeed);--creando bind para llamar funcion pararWeed end end end addCommandHandler("crearHojilla", crearHojilla) function crearCigarro(player) if not isPedInVehicle(player) then if getElementData(player, "hojillas") and getElementData(player, "bolsitaweed") then destroyElement(hojillas[player])--destruyendo hojilla cigarros[player] = createObject(model,x,y,z);--creando cigarro unbindKey(player, "F","down", crearCigarro);--quitando bind de crearCigarro bindKey(player, "F","down", fumarCigarro);--creando bind para llamar funcion fumarCigarro end end end function fumarCigarro(player) --codigo al fumar removeElementData(player, "hojillas")--quitando hojilla removeElementData(player, "bolsitaweed")--quitando bolsitaweed end function pararWeed(player) if hojillas[player] and isElement(hojillas[player]) then destroyElement(hojillas[player]); hojillas[player] = nil; end if cigarros[player] and isElement(cigarros[player]) then destroyElement(cigarros[player]); cigarros[player] = nil; end unbindKey(player, "F","down", crearCigarro); unbindKey(player, "X","down", pararWeed); end
  17. VIDEO https://streamable.com/qz8u9?fbclid=IwAR0vKKzIHSkDcFzHmIyTSDgWQVIEiXLAbcHA1fgJw0vze5SWULYtCvU78Uw
  18. https://community.multitheftauto.com/index.php?p=resources&s=details&id=5060
  19. Te hare uno y tu lo adaptas a tu servidor Quieres que al usar un cmd se cree una hojilla, despues con un bindkey crear el cigarro sin embargo para que esto suceda necesitas tener weed. Solo confirma si es correcto para mandar el codigo.
  20. El error se entiende como: no se pudo llamar al resource sql. Ya que no esta el resource iniciado o contiene errores que impiden que inicie correctamente.
  21. I dont see errors Why don't you call the function after the object is created?
  22. The resources are probably named the same as on the other servers, this would cause the data to overlap
  23. You need use this https://wiki.multitheftauto.com/wiki/SetObjectBreakable but is only for clientside for this use triggerClientEvent
×
×
  • Create New...