Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. 'source' is not a player when using 'onResourceStart', it's the root element in the resource that started.
  2. Castillo

    Teleports

    Ah, gracias y para hacer teleports que no sean a interiores? Solo porque el recurso se llame "interiors" no significa que sea solamente para teleportar dentro de un interior, podes usarlo para enviar al jugador a cualquier parte.
  3. Castillo

    Teleports

    Podes usar el recurso que trae el MTA, se llama "interiors".
  4. No especificas el dato que queres cambiar en setElementData. @Tomas: El argumento para sincronizar es 'true' por defecto. @Blue Pie: Usa getElementData ( localPlayer, "level" )
  5. I have a notebook, aside from my desktop PC, with Intel HD Graphics 4000, and the FPS is around 40.
  6. This is the shader, where's the texture you are providing to the shader to use?
  7. Pero si pones los upgrades en el client side, el server side no sabra que el auto los tiene.
  8. Porque takePlayerMoney no tomara el dinero en el client side, solo parecera que lo hizo.
  9. You could use element data, when the player logins, check if VIP, then set the element data.
  10. 6 minutos y medio para explicar algo tan simple como eso? no entiendo.
  11. About the pasting link problem, you don't have to bind a key to do it, simply press F8 and write: "say ".
  12. You didn't make that code, my guess, you took it from CSG leaked scripts, since UniOn scripted that.
  13. But which object do you want it to check? the one infront of the player or what?
  14. You can't "get the element", but you can get the object model with processLineOfSight.
  15. I don't think having more or less empty slots will make any impact in the ram usage. But still, I don't really know much about the subject, so maybe someone else can confirm/deny it.
  16. guiSetInputMode se puede usar para que solo active los binds cuando no estas escribiendo en un edit field/memo, al contrario de guiSetInputEnabled, que no deja utilizar los binds ni cuando no estas escribiendo en un edit field/memo.
  17. getPlayerName obtiene el nombre de un jugador, la funcion suya obtiene un jugador por parte de un nombre. Ejemplo: getPlayerFromNamePart ( "Casti" ) > Devuelve al jugador que tenga 'Casti' en su nombre. Sin ofender, pero deberia abstenerse de postear cosas si no sabe siquiera que hacen.
  18. Como no existen eventos para cuando la hora de la computadora cambia, tenes que usar un timer ( setTimer ), para verificar cada X segundos/minutos/horas si son las 13 en punto. Y si, getRealTime usado en el servidor devolvera la hora del servidor.
  19. local button = getControl ( wndMain, "skins" ) You must put this code after: createWindow(wndMain)
  20. getLocalPlayer es una funcion, osea que tenes que ejecutarla como tal, con los parentesis al final. triggerServerEvent ( "armacz", getLocalPlayer ( ) )
  21. triggerServerEvent("armacz", resourceRoot) Cambia 'resourceRoot' por 'localPlayer'.
×
×
  • Create New...