Jump to content

Renkon

Members
  • Posts

    876
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Renkon

  1. Renkon

    question

    Yes, you can, but this is the wrong section ;
  2. addCommandHandler("tp", function(p, c, x, y, z) if not p or not type(x) == "number" or not type(y) == "number" or not type(z) == "number" then return end setElementPosition(p, x, y, z) end) /tp 0 0 0 te llevaría a una granja
  3. Renkon

    Altura

    https://wiki.multitheftauto.com/wiki/SetObjectScale Prueba, dudo qeu funcione pero no pierdes nada probando
  4. You are concatenating text, which is nil, since you haven't passed any other argument after Tag. However, you have text defined too
  5. change onPlayerJoin for onPlayerSpawn
  6. Reconnect.
  7. addEventHandler("onPlayerJoin", getRootElement(), function() toggleControl(source,"vehicle_left", false) toggleControl(source,"vehicle_right", false) end )
  8. setVehicleHandling ( theVeh, "steeringLock", 0)
  9. Podrías mostrar los errores?
  10. Wow está bien en chiquito, me guié por el titulo addEventHandler("onPedWarped", root, function(p) setPedControlState(p, "accelerate", true) setTimer(setPedControlState, 5000, 1, p, "accelerate", false) end )
  11. k, thank you
  12. Thought it was possible in one line :c
  13. Is it possible to overwrite a bindkey? For instance, can I overwrite the button T so I trigger the command chatbox, but instead of using say, I use something like /decir ?
  14. addCommandHandler("darcarro", function(s, c, id) for i,p in ipairs (getElementsByType("player")) do if local v = getPedOccupiedVehicle(p) then setElementModel(v, id) end end end ) UNTESTED
  15. ClientSide addEventHandler("onClientResourceStart", getRootElement(), function() triggerServerEvent("onClientResourceStarted", localPlayer) end) addEvent("onPedWarped", true) addEventHandler("onPedWarped", root, function(p) setPedControlState(p, "accelerate", true) end ) ServerSide addEvent("onClientResourceStarted", true) addEventHandler("onClientResourceStarted", root, function() local hunter = createVehicle (411, 18.04815673828, 1997.5656738281, 17.640625) local ped = createPed ( 2, 18.04815673828, 1998.5656738281, 17.640625) warpPedIntoVehicle(ped, hunter) triggerClientEvent(source, "onPedWarped", source, ped) end ) Nótese que podría haber una DESINCRONIZACIÓN entre otros JUGADORES, del Hunter.
  16. warpPedIntoVehicle es serverside
  17. tiggerEvent no existe primero. Es TRIGGER. Segundo, estás trigeando el evento en el CLiente. No estas haciendo triggerServerEvent.
  18. Renkon

    "Break"

    It is like a return but for for and while
  19. Renkon

    Ayuda

    Muestranos el código.
  20. Lo unico que se me ocurre, es que uses un boolean declarado como 'true', y pongas en el sendMessage, if boolean then y adentro pones boolean = false, y luego ejecutas lo otro Con un Timer de 60 segundos asu vez o de quizas menos lo vuelves true nuevamente. Porque no encuentro un error
  21. O podés usar el resource 'STAGE'. Búscalo en Community
  22. Esa funcion no existe. Lo que podes hacer es removerla y crear con createObject un objeto igual, y ahi si lo moves con moveObject
  23. Try this Maybe works too and MUCH LESS LINES addEventHandler( 'onPlayerVoiceStart', root, function() local r = 20 -- We get users' position local posX, posY, posZ = getElementPosition( source ) -- create a sphere of the specified radius in that position local chatSphere = createColSphere( posX, posY, posZ, r ) -- get a table all player elements inside it nearbyPlayers = getElementsWithinColShape( chatSphere, "player" ) -- and destroy the sphere, since we're done with it destroyElement( chatSphere ) setPlayerVoiceBroadcastTo ( source, nearbyPlayers ) end) About voice, I dont think it's possible.
  24. Renkon

    Got a problem.

    In ServerEvent, set as second argument, localPlayer instead of root
  25. local detection = isElementWithinColShape ( playerIntoZone, DSZone ), NO DEBERÍA ser 'Zone' el colshape?
×
×
  • Create New...