Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Castillo

    Slothbot

    Puede que tengas un script que este haciendolos immortales.
  2. Because it's not as simple as that.
  3. Castillo

    button

    Post the new script.
  4. Castillo

    ayuda

    function createVcle ( sourcePlayer ) local x, y, z = getElementPosition ( sourcePlayer ) setPedAnimation ( sourcePlayer, "freeweights", "gym_free_pickup", 1000, false, false, false ) objeto = createObject ( 897, x, y - 7, z + 0.3, 0, 90, 90 ) setTimer ( function ( ) destroyElement ( objeto ) objecto = nil setPedAnimation ( sourcePlayer ) end ,6000, 1 ) outputChatBox ( "Doton Doryu Joheki", sourcePlayer, 100, 100, 0 ) end addCommandHandler ( "doton", createVcle )
  5. That's because the markers don't exist when you add the event handler.
  6. function createVcle ( sourcePlayer ) local x, y, z = getElementPosition ( sourcePlayer ) setPedAnimation ( sourcePlayer, "freeweights", "gym_free_pickup", 1000, false, false, false ) objeto = createObject ( 897, x, y - 7, z + 0.3, 0, 90, 90 ) setTimer ( function ( ) destroyElement ( objeto ) objecto = nil setPedAnimation ( sourcePlayer ) end ,6000, 1 ) outputChatBox ( "Doton Doryu Joheki", sourcePlayer, 100, 100, 0 ) end addCommandHandler ( "doton", createVcle )
  7. Castillo

    GUI Help

    Then, put the onClientGUIClick addEventHandler after you create the button ( inside the same function ).
  8. Castillo

    button

    You changed what I told you?
  9. Castillo

    GUI Help

    Do you get any errors on the debugscript? is "bLogin" created outside any function?
  10. Castillo

    button

    addEventHandler("onClientMarkerHit", niet, kl ) Why you put "kl" there? the function you want to execute when you hit the marker is "mark".
  11. Castillo

    GUI Help

    Add an outputChatBox to see if the function is being executed.
  12. Castillo

    Picture :D

    Use the event: onClientPlayerWeaponFire
  13. Castillo

    button

    Put the addEventHandler for "onClientMarkerHit" after you create the marker.
  14. addEventHandler( "onMarkerHit", getResourceRootElement( getThisResource( ) ),) Cambialo por: addEventHandler ( "onMarkerHit", getResourceRootElement( getThisResource( ) ), HitMarker )
  15. chat_range = 100 -- Distancia function engineSwitch ( ) if ( isPedInVehicle ( source ) ) then local veh = getPedOccupiedVehicle ( source ) if ( getVehicleEngineState ( veh ) == true ) then setVehicleEngineState ( veh, false ) local px, py, pz = getElementPosition ( source ) for _, v in ipairs ( getElementsByType ( "player" ) ) do if isPlayerInRangeOfPoint ( v, px, py, pz, chat_range ) then outputChatBox ( "*".. getPlayerName ( source ) .." ah apagado el Vehiculo.", v, 255, 40, 80 ) end end else setVehicleEngineState ( veh, true ) local px, py, pz = getElementPosition ( source ) for _, v in ipairs ( getElementsByType ( "player" ) ) do if isPlayerInRangeOfPoint ( v, px, py, pz, chat_range ) then outputChatBox ( "*".. getPlayerName ( source ) .." ah encendido el Vehiculo.", v, 255, 40, 80 ) end end end else outputChatBox ("You aren't in a vehicle!", source, 255, 0, 0) end end addEvent ( "engenieSwitch",true ) addEventHandler ( "engenieSwitch", getRootElement(), engineSwitch ) function isPlayerInRangeOfPoint(player,x,y,z,range) local px,py,pz=getElementPosition(player) return ((x-px)^2+(y-py)^2+(z-pz)^2)^0.5 <= range end
  16. Castillo

    GUI Help

    Where's "bLogin" defined?
  17. Ese codigo no tiene 103 lineas, y el error esta en esa linea. A que linea corresponde la linea 103 en el codigo que posteaste?
  18. Instead of using element data, he can trigger a server side event to get the money, then trigger it back to set it on the grid list.
  19. Castillo

    Edit boxes

    Could you show me one? because MTA doesn't support CSS.
  20. I tried replacing every single texture and the CJ clothes remain the same, so I take it that they don't exist as textures?
  21. Castillo

    Edit boxes

    CSS files? MTA doesn't use CSS.
×
×
  • Create New...