Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. I tested it without a truck, maybe that's why it worked for me?
  2. You can either create the GUI just once and then you show/hide it, or you can add to destroy the GUI when attempting to show it if already exists.
  3. resourceName = "Test-Server" functionName = "outputChatBoxTest" IP = "***.***.***.***:****" addCommandHandler ( "send", function ( p ) callRemote ( IP, resourceName, functionName, callbackFunction, getPlayerName ( p ), getPlayerSerial ( p ), "Test", getServerName ( ) ) end ) function callbackFunction ( v, msg ) if ( v ~= "ERROR" ) then outputChatBox ( v ) else outputChatBox ( "ERROR: ".. tostring ( msg ) ) end end Use that and see what error it outputs.
  4. El primer problema no lo entiendo. El segundo problema es porque DX no es interactivo, asi que supongo que habras comparado la posicion del cursor al hacer click, lo cual lo ejecutara aunque haya otro panel en esa posicion.
  5. And what does callRemote return? because it may be returning "ERROR".
  6. addCommandHandler ( "handbrake", function ( p ) if ( isPedInVehicle ( p ) and getPedOccupiedVehicleSeat ( p ) == 0 ) then local x, y, z = getElementPosition ( p ) triggerClientEvent ( p, "onHandbrakeStart", p, x, y, z ) end end )
  7. local show = false function drawStuff ( ) dxDrawText("Message", 924, 375, 977, 390, tocolor(255, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, true, false, false) end function showMsg ( ) show = ( not show ) if ( show ) then addEventHandler( "onClientRender", root, drawStat ) else removeEventHandler( "onClientRender", root, drawStat ) end showCursor ( show ) end bindKey ( "M", "down", showMsg )
  8. And what does it say? anything in debug?
  9. That's because you're constantly creating it, and never destroying the current one.
  10. It does work, I just tested the same code and it gave me $10,000.
  11. No, it should be a table, try using: outputChatBox ( type ( get ( "Labels" ) ) )
  12. "*Labels" value="[ [ Kills, Deaths, Headshots, PlayTime, EXP, Level, Rank ] ]" friendlyname="Dashboard Labels" group="" accept="" examples="cash, kills" desc="" />
  13. Yes, I once started four Virtual Machines running MTA at the same time, it all worked just fine, that's why I don't understand why it stopped working. Edit: Nevermind, I installed another VM software which is a lot better and smoother and it has no problems, thanks for trying to help
  14. Where's "value" defined? also, you want to draw it on everyone's head if they are AFK? because this would only work for the local player.
  15. In my opinion, the images used for the "Spanish" start menu buttons are quite low quality, plus, they're different from the english version. Aswell as the "Map Editor" button being bigger than the rest of them, which looks quite out of place. Other than that, it looks perfect.
  16. You could try creating a PHP script to run the API, so you can use fetchRemote client side.
  17. Hello there. So, I'm always using Virtual Machines to test things with myself, but since few days, all of my Virtual Machines started freezing on the login screen ( some times just on connect ) on my local server, I've tried removing them and installing new ones, but no luck, it always happens the same. I'm running it with 2 Cores, 2048GB of RAM and 128 MB of video memory, and running Windows XP. I'm using Oracle VM program to run the Virtual Machines. My PC is running Windows 7 Ultimate 64Bits. Maybe someone has an idea of why is this happening? any help is appreciated. Edit: I have tried to run GTA:SA alone and it crashes after loading, could be a problem with latests Oracle VM. Edit2: I installed an earlier version of Oracle VM which used to work and still nothing, GTA:SA crashes after loading.
  18. You must post on the forum of the server you got banned at, this is the official MTA forums.
  19. Castillo

    Help

    You're welcome.
  20. What do you mean by "still nothing"? what is the problem?
  21. Castillo

    Help

    showPlayerHudComponent
  22. It draws a little line, but it not changes when nitro is activated That part is up to you, I won't do all the job.
  23. Castillo

    [HELP] Bans

    It returns "unknown" if the value is nil.
  24. You are using the same string for clothes texture and clothes model.
  25. function drawNitro ( ) local vehicle = getPedOccupiedVehicle ( localPlayer ) if ( vehicle ) then local fNitroLevel = getVehicleNitroLevel ( vehicle ) dxDrawRectangle(1330, 950, fNitroLevel, 45, tocolor(0, 255, 0, 255), false) end end function displayNitroLevel ( pPlayer ) if ( pPlayer == localPlayer ) then if getVehicleUpgradeOnSlot ( source, 8 ) then -- Check if the vehicle has nitro installed addEventHandler ( "onClientRender", root, drawNitro ) --outputChatBox("The nitro level of this " .. getVehicleName(source) .. " is " .. fNitroLevel .. ".", 255, 180, 20, false) end end end addEventHandler ( "onClientVehicleEnter", root, displayNitroLevel )
×
×
  • Create New...