Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Try renaming the resource to something like rpm_gear, maybe the "+" is messing with it.
  2. Castillo

    Ayuda

    Blockeo el topic asi no hacen spam, Bloodz, enviame un PM si queres que lo abra.
  3. Remi-X, actually he didn't scripted the RPM function o_O, check this topic: viewtopic.php?f=91&t=34184
  4. Castillo

    Problems

    -- The Checkbox GUIEditor_Checkbox[1] = guiCreateCheckBox(300,29,15,15,"",false,false,GUIEditor_Window[1])-- Nickname function clientNick1() if guiCheckBoxSetSelected (GUIEditor_Checkbox[1]) then guiSetText(GUIEditor_Edit[1], getPlayerName(getLocalPlayer()) end end addEventHandler("onClientGUIClick",GUIEditor_Checkbox[1],clickNick1,false) I don't understand why you have to trigger to the server if you only want to get client nick.
  5. Castillo

    Ayuda

    De nada, buena suerto con el resto .
  6. Try this: setLights = {} function EmergencyLights ( thePlayer ) theVehicle = getPedOccupiedVehicle ( thePlayer ) if ( theVehicle ) then if ( getVehicleOverrideLights ( theVehicle ) ~= 2 ) then setVehicleOverrideLights ( theVehicle, 2 ) setLights[theVehicle] = setTimer ( setLight, 400, 1, 1, theVehicle ) else setVehicleOverrideLights ( theVehicle, 0 ) setVehicleHeadLightColor(theVehicle, 255, 255, 255) if isTimer(setLights[theVehicle]) then killTimer ( setLights[theVehicle] ) end end end end addCommandHandler ( "l", EmergencyLights ) function setLight ( state, theVehicle ) if state == 1 then setLights[theVehicle] = setTimer ( setLight, 400, 1, 2, theVehicle ) setVehicleHeadLightColor (theVehicle, 000, 000, 255) elseif state == 2 then setVehicleHeadLightColor (theVehicle, 255, 000, 000) setLights[theVehicle] = setTimer ( setLight, 400, 1, 1, theVehicle ) end end
  7. Here's a example of meta.xml: https://wiki.multitheftauto.com/wiki/Meta.xml
  8. Castillo

    Ayuda

    addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()), function () GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Image = {} guipanel = guiCreateWindow(0.1375,-0.01,0.72,0.7933,"User Panel",true) guiSetVisible(guipanel,false) guiregister = guiCreateButton(34,41,135,27,"Register",false,guipanel) guilogin = guiCreateButton(35,76,135,27,"Login",false,guipanel) guiplayergang = guiCreateButton(35,114,135,27,"Player Gang",false,guipanel) guiserverhelp = guiCreateButton(35,153,135,27,"Server help",false,guipanel) guiprops = guiCreateButton(34,190,135,27,"My props.",false,guipanel) guibank = guiCreateButton(34,228,135,27,"Bank account.",false,guipanel) guiimage = guiCreateStaticImage(120,100,328,261,"images/mtalogo.png",false,guipanel) addEventHandler ("onClientGUIClick", guiregister, onClientGUIClick, false ) end) function userPanel (commandName) guiSetVisible(guipanel,not guiGetVisible(guipanel)) showCursor(not isCursorShowing()) end addCommandHandler ("mypanel", userPanel) function onClientGUIClick() guiregistro = guiCreateWindow(0.2562,0.2733,0.495,0.28,"Register",true) guinombre = guiCreateEdit(94,34,212,25,"Here Your User Name.",false,guiregistro) guicontraseya = guiCreateEdit(94,78,212,25,"Here Your Password.",false,guiregistro) guicerrar1 = guiCreateRadioButton(265,121,112,23,"Close",false,guiregistro) guiaceptar1 = guiCreateRadioButton(141,122,112,23,"Accept",false,guiregistro) guiatras1 = guiCreateRadioButton(18,122,112,23,"Back",false,guiregistro) end Ya te lo arregle .
  9. keyTable = { "mouse1", "mouse2", "mouse3", "mouse4", "mouse5", "mouse_wheel_up", "mouse_wheel_down", "arrow_l", "arrow_u", "arrow_r", "arrow_d", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "num_0", "num_1", "num_2", "num_3", "num_4", "num_5", "num_6", "num_7", "num_8", "num_9", "num_mul", "num_add", "num_sep", "num_sub", "num_div", "num_dec", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", "backspace", "tab", "lalt", "ralt", "enter", "space", "pgup", "pgdn", "end", "home", "insert", "delete", "lshift", "rshift", "lctrl", "rctrl", "[", "]", "pause", "capslock", "scroll", ";", ",", "-", ".", "/", "#", "\\", "=" } for i,v in pairs(keyTable) do unbindKey(tostring(v),"both") end Client side.
  10. Castillo

    Ayuda

    Yo tuve este problema y averigue que lo causa, la causa es que vos pones -250, -200 en el tamaño, el "-" causa este error. local GSAREA = createRadarArea ( 2600, -1600, 250, 200, 0, 255, 0, 150, getRootElement() ) local VGAREA = createRadarArea ( 2878, -1660, 250, 200, 250, 250, 15, 150, getRootElement() ) local BSAREA = createRadarArea ( 781, -1634, 250, 200, 100, 25, 225, 150, getRootElement() ) Vas a tener que re-posicionarlas porque van a estar en mal posicion (almenos 2, las que tenian el -)
  11. No, they are radar areas, read about them here: https://wiki.multitheftauto.com/wiki/Ser ... _functions
  12. Castillo

    Why server Kick ME!

    A cheat engine, maybe you got sobeit installed or something.
  13. Castillo

    Ayuda

    Ah, eso es un error en la posicion donde las creaste.
  14. That's not big, that's normal.
  15. As I said, use the engine functions, and also, I told you that you can't replace MODEL(S)(.DFF files).
  16. The second argument is the size, I don't know if you can lower it than 1.
  17. Well.... you can only wait, also, you should use this time to do something else than playing.
  18. You can replace the textures of some weapons, but not the MODEl. To do this use the engine functions: https://wiki.multitheftauto.com/wiki/Cli ... _functions
  19. --client side function getPlayerCredits(cmd, who) local player = getPlayerFromName(who) if not player then outputChatBox("Player not found.",255,0,0) return end triggerServerEvent("getPlayerCredits",getLocalPlayer(),player) end addCommandHandler("getc",getPlayerCredits) --server side addEvent("getPlayerCredits",true) addEventHandler("getPlayerCredits",root, function (player) outputChatBox(getPlayerName(player) .." has 50000 credits.",root,0,255,0) end) So for example you type: /getc [sANL]Castillo and it should output that text (if you wrote the name right of course).
  20. 1: There aren't expecific tutorials about scripting "RPG" modes, but there are functions list, events list, including examples about them. https://wiki.multitheftauto.com/wiki/Scr ... troduction https://wiki.multitheftauto.com/wiki/Int ... ng_the_GUI Take a look at these links, don't read for 1 minute and leave, give it time.
  21. I think you should go to their website/forum instead, this forum isn't for this.
  22. Castillo

    Ayuda

    1: Usa onClientGUIClick para los elements GUI. 2: Si queres agregar un usuario a un grupo del acl creo que deberias usar esto: aclGroupAddObject. 3: No entiendo a que te referis.
  23. JR10, even wrong, because I had a missing ')' and I fixed it, but seems like he copied a old code.
  24. Castillo

    dx collisions

    Remi-X, I think he want's to check whenver is his character image over another static image or something like that.
  25. A mysql server is easy to create, I use "xampp" to make it.
×
×
  • Create New...