Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Podes usar una tabla para definir cuanto dinero y cuanto tiempo por estrella.
  2. Tiempo: setTimer ( setElementPosition, 100000, 1, source, 1544.4332275391, -1674.7698974609, 13.688399200439) Dinero: givePlayerMoney (attacker, 3000)
  3. You can anim a DX, you can use interpolateBetween to make a nice effect, or just define variables and change them.
  4. That would be for GUI, but if it's DX, then it won't work.
  5. Post what you tried then.
  6. You could use tables. http://lua-users.org/wiki/TablesTutorial
  7. addEventHandler("onClientGUIClick", GUIEditor.button[1], login_player, false) -- button 2 is username That has to go inside the onClientResourceStart function.
  8. You want to take his weapons or spawn with the weapons you want?
  9. Castillo

    Help

    You could try binding the siren key to a function which will check the sirens state.
  10. Have you even tried to do it?
  11. What doesn't work? And by the way, you didn't make it, it was posted on a topic recently.
  12. Put it on your script, and add this function after "AreSurvivorsGone()" at "onPlayerWasted": exports.mapmanager:changeGamemode( getResourceFromName('aa') )
  13. I don't really understand the problem, could you try to explain yourself better? the animals never die? is that it?
  14. There isn't a public resource to do this, but you can script it yourself.
  15. That's just the GUI, we won't make the rest for you. You'll need the following functions/events: Functions: -- client side: addCommandHandler guiGetVisible guiSetVisible showCursor getElementsByType guiGridListAddRow guIGridListSetItemText guiGridListGetSelectedItem guIGridListGetItemText triggerServerEvent hasObjectPermissionTo addEvent addEventHandler -- server side: hasObjectPermissionTo addEvent addEventHandler Events: onClientGUIClick
  16. El panel es GUI? si es asi, entonces usa guiGetVisible para obtener el estado, si esta visible, lo ocultas, y si no, lo mostras.
  17. limoVehicles = { [ 409 ] = true } function limoenterVehicle ( player, seat, jacked ) local team = getPlayerTeam ( player ) if ( limoVehicles [ getElementModel ( source ) ] ) and ( not team or getTeamName ( team ) ~= "Pilotos de limosina" ) and ( seat == 0 ) then removePedFromVehicle ( player )-- te recomiendo omitir esta linea y usar cancelEvent outputChatBox ( "Este vehículo no es de tu trabajo.", player ) cancelEvent ( ) end end addEventHandler ( "onVehicleEnter", getRootElement(), limoenterVehicle )
  18. El tema es que ya esta usando /register y ese comando le da error.
  19. Usa getPlayerTeam + getTeamName
  20. The client side you posted is all you got? if so, then you've got missing the GUIeditor table generated along with the GUI.
  21. Where's "GUIEditor" table defined?
×
×
  • Create New...