Jump to content

Charango

Members
  • Posts

    7
  • Joined

  • Last visited

About Charango

  • Birthday May 26

Details

  • Gang
    Ninguno
  • Location
    Argentina

Charango's Achievements

Newbie

Newbie (4/54)

0

Reputation

  1. How to start from scratch? i don't understand.
  2. Someone who could help me? Tell me what I'm doing wrong? Please Regards,
  3. I did this, local me = getLocalPlayer() function toggleGhost() setElementData(me, "hideGhost", not getElementData(me, "hideGhost"), false) local e = getElementData(me, "hideGhost") outputChatBox('[HIDE] Ghost are '.. ( e and "hidden" or "visible" ), 255, 100, 100, true) end addCommandHandler("hg", toggleGhost) bindKey("k", "down", toggleGhost) function hideGhost(GhostPlayback) local vehicle = GhostPlayback if vehicle then if getElementDimension(vehicle) ~= 999 or getElementDimension(GhostPlayback) ~= 999 or getElementInterior(GhostPlayback) ~= 999 or getElementInterior(vehicle) ~= 999 then setElementDimension(vehicle, 999) setElementDimension(GhostPlayback, 999) setElementInterior(vehicle, 999) setElementInterior(GhostPlayback, 999) end end end function showGhost(GhostPlayback) local vehicle = GhostPlayback if vehicle then if getElementDimension(vehicle) ~= 0 or getElementDimension(GhostPlayback) ~= 0 or getElementInterior(GhostPlayback) ~= 0 or getElementInterior(vehicle) ~= 0 then setElementDimension(vehicle, 0) setElementDimension(GhostPlayback, 0) setElementInterior(vehicle, 0) setElementInterior(GhostPlayback, 0) end end end The code where I got the line "GhostPlayback" is this, GhostPlayback = {} GhostPlayback.__index = GhostPlayback addEvent( "onClientGhostDataReceive", true ) addEvent( "clearMapGhost", true ) function GhostPlayback:create( recording, ped, vehicle ) local result = { ped = ped, vehicle = vehicle, recording = recording, isPlaying = false, startTick = nil, } setElementCollisionsEnabled( result.ped, false ) setElementCollisionsEnabled( result.vehicle, false ) setElementFrozen( result.vehicle, true ) setElementAlpha( result.ped, 100 ) setElementAlpha( result.vehicle, 100 ) return setmetatable( result, self ) end It does not work, hit the "k" I get "[HIDE] Ghost are hidden", "[HIDE] are visible Ghost" but ghost driver is still visible. In "debugscript" not get errors. Do not know what to do, please help. Greetings.
  4. The "Ghost Race Driver" is an add-on for Race Gamemode (More info: https://community.multitheftauto.com/index.php?p= ... ils&id=665) and I want to have a command to hide/show the ghost driver individually, I mean that a player put the command and hide the ghost driver only for this player. Greetings.
  5. Spanish - Español Hola, quiero ponerle a mi Race Ghost Driver (DM), un comando o algo por el estilo para que cada player pueda ocultarlo/mostrarlo, alguien sabe como puedo hacerlo? Saludos. English - Inglés Hello, I want to put in my Ghost Race Driver (DM), a command or something so that each player can hide/show, anyone know how I can do? Greetings.
  6. Thanks for responding ccw, had already solved my problem a few minutes ago. I found a comment on another user's post "uhm" which read: yum install compat-readline5-static I tried it and it worked perfectly, but just try your code and see that also works well because did this: Package compat-readline5-5.2-17.1.el6.i686 already installed and latest version Nothing to do Anyway, thank you very much.
  7. English - Inglés Hello, I have a Linux VPS CentOS 6 32 bit and want to run MTA server, and got everything but when I " /mta/mta-server start " I get the following: libreadline.so.5: cannot open shared object file: No such file or directory ERROR: Loading mod (/mta/mods/deathmatch/deathmatch.so) failed! Press Q to shut down the server! I changed the deathmatch.so by another but still leave the same. Please help! Greetings. Spanish - Español Hola, tengo un VPS Linux CentOs 6 32 bits y quiero correr mi servidor de MTA, ya subí todas las cosas pero cuando pongo " /mta/mta-server start " me sale lo siguiente: libreadline.so.5: cannot open shared object file: No such file or directory ERROR: Loading mod (/mta/mods/deathmatch/deathmatch.so) failed! Press Q to shut down the server! Ya cambié el deathmatch.so por otro pero sigue saliendo lo mismo. Por favor ayúdenme! Saludos.
×
×
  • Create New...