Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. 1: You must make a bridge between the client and the server, so, make the command server sided and trigger an event to every player to start the music. 2: You must use isElement to check if the sound is already started, if so, destroy it with stopSound or destroyElement.
  2. Castillo

    Markers

    Well, you must choose one method for saving, there's SQL, MySQL, XML.
  3. addCommandHandler client side doesn't have a player argument, so, remove that 'source' from the function name, then rename all 'source' in the rest of the script to 'localPlayer'.
  4. Castillo

    Markers

    Ah, you want the destroyed markers to stay destroyed after the resource restarts, for that, you'll need to create a system to save the state of every marker, then when the resource starts, load that state.
  5. Castillo

    Markers

    I don't understand what do you mean.
  6. That's the same thing you said on the topic, what I'm asking is... what is not working?
  7. Castillo

    Bug

    What do you mean?
  8. Because the player isn't on a vehicle?
  9. Usar ' y " es lo mismo. @ProtoN: Proba cambiando el valor a nil.
  10. createTeam is a server side only function, and for what it seems, your script is mostly client side.
  11. Use this resource: https://community.multitheftauto.com/in ... ils&id=347
  12. You can use account data, is the easiest way. setAccountData getAccountData
  13. myTable = { "HELLO" } outputChatBox ( tostring ( _G [ "myTable" ] [ 1 ] ) )
  14. Castillo

    Ayuda Script

    Cambia getRootElement por thePlayer.
  15. No, you need to change the position of both images.
  16. What do you mean...? like set it as parent of the other? like you can do with GUI?
  17. You could try: onClientPlayerWeaponFire with: setElementVelocity or setElementPosition
  18. You must find the script which contains that command, then edit it to look in the map name for "DM" tags.
  19. local sm = {} sm.moov = 0 sm.object1, sm.object2 = nil, nil function removeCamHandler () if(sm.moov == 1) then sm.moov = 0 removeEventHandler ( "onClientPreRender", getRootElement(), camRender ) end end function camRender () local x1, y1, z1 = getElementPosition ( sm.object1 ) local x2, y2, z2 = getElementPosition ( sm.object2 ) setCameraMatrix ( x1, y1, z1, x2, y2, z2 ) end function smoothMoveCamera ( x1, y1, z1, x1t, y1t, z1t, x2, y2, z2, x2t, y2t, z2t, time ) if(sm.moov == 1) then return false end sm.object1 = createObject ( 1337, x1, y1, z1 ) sm.object2 = createObject ( 1337, x1t, y1t, z1t ) setElementAlpha ( sm.object1, 0 ) setElementAlpha ( sm.object2, 0 ) setObjectScale(sm.object1, 0.01) setObjectScale(sm.object2, 0.01) moveObject ( sm.object1, time, x2, y2, z2, 0, 0, 0, "InOutQuad" ) moveObject ( sm.object2, time, x2t, y2t, z2t, 0, 0, 0, "InOutQuad" ) addEventHandler ( "onClientPreRender", getRootElement(), camRender ) sm.moov = 1 setTimer ( removeCamHandler, time, 1 ) setTimer ( destroyElement, time, 1, sm.object1 ) setTimer ( destroyElement, time, 1, sm.object2 ) return true end Try that instead.
  20. The map editor adds an script to load the objects to remove from the map file.
×
×
  • Create New...