Jump to content

Hydra

Members
  • Posts

    373
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by Hydra

  1. The examples on the wiki are pretty clear on how you can use this function. Don't wait for someone to do your things for you and learn how you should do them. https://wiki.multitheftauto.com/wiki/GetCommandHandlers
  2. Hydra

    vehicle

    If you use createVehicle in client-side you can't drive the vehicles Note: Vehicles (and other elements) created client-side are only seen by the client that created them, aren't synced and players cannot enter them. They are essentially for display only.
  3. Hydra

    vehicle

    wdym, it should work for all vehicles
  4. Hydra

    vehicle

    --// Server side function asd(thePlayer, matchingDimension) for k, v in ipairs(getElementsByType("vehicle")) do if isElementWithinColShape(v, yourCol) then destroyElement(v) else end end end addEventHandler("onColShapeHit", yourCol, asd)
  5. Hydra

    vehicle

    Wait a few minutes, I'm gonna give you an answer soon
  6. Hydra

    vehicle

    function b(thePlayer, matchingDimension) for k, v in ipairs(getElementsByType("vehicle")) do destroyElement(v) end end addEventHandler("onColshapeHit", yourColshape, b)
  7. Look here: https://community.multitheftauto.com/
  8. function testAttach(commandName, thePlayer, theVictim) local theAttachedVictim = getPlayerFromName(theVictim) if theAttachedVictim then attachElements(theAttachedVictim, thePlayer, 0, 0, 5) else end end addCommandHandler("grabPlayer", testAttach) function testDetach(commandName, thePlayer, theVictim) local theAttachedVictim = getPlayerFromName(theVictim) if isElementAttached(theAttachedVictim) then detachElements(theAttachedVictim, thePlayer) else outputChatBox("The player is not attached", thePlayer, 255, 255, 255, true) end end addCommandHandler("detachPlayer", testDetach) --// Syntax /grabPlayer theVictim --// Syntax /detachPlayer theVictim Not sure if will work because I didn't tested the function
  9. Can you be more explicit please with your question? Because it is not understood what you mean and we cannot help you
  10. 1. You need to add the map in your server "Your MTA Directory\mods\deathmatch\resources\gameplay" 2. Open the ,,MTA Server.exe" and type in the console ,,start yourResourceName" or add in mtaserver.conf at the bottom <resource src="yourResourceName" startup="1" protected="0" /> 3. Open MTA -> Server Browser -> Local 4. Enjoy! :))
  11. setAmbientSoundEnabled( "gunfire", false ) It is given as an example on the wiki lmao https://wiki.multitheftauto.com/wiki/SetAmbientSoundEnabled
  12. That's an ambient sound. You can disable it if I'm not wrong. setAmbientSoundEnabled or setSoundEffectEnabled can't remember what was the right one
  13. function sp() spawnPlayer(source, 0, 0, 5) fadeCamera(source, true) setCameraTarget(source, source) end end addEventHandler("onPlayerJoin", root, sp)
  14. local obj=createObject(1947,191.14917, -107.59645, 1.54682-1) function d() local orx, ory, orz = getElementRotation(obj) setElementRotation(obj, orx+1, ory, orz) end end addEventHandler("onClientRender", getRootElement(), d) Or use: interpolateBetween() if you want a smooth rotation
  15. Hydra

    Time?

    isn't getRealTime() used for getting the current time from player computer?
  16. I didn't have problems using that shader, maybe you changed something. Use the example from 2nd comment on that post
  17. Look at this topic, there is a shader in the comments:
  18. Ai putea fi mai explicit la partea ,,puteai incarca o masina la statiile de incarcare"?
  19. Maybe if you create a corona marker and attach it to the vehicle tail lights.
  20. function sf(thePlayer, command) local adminname = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..adminname, aclGetGroup ( "Admin" ) ) then setElementPosition(thePlayer, -1997.923828125, 171.4658203125, 27.6875) warpPedIntoVehicle(thePlayer, theVehicle, 0) else outputChatBox("No acces!", thePlayer, 255, 0, 0) end end addCommandHandler("gotosf", sf) This is how it should look if you want to teleport the player in a vehicle
  21. Use this example from wiki: https://wiki.multitheftauto.com/wiki/SetAccountData
  22. A project is already work in progress that will allow you to do the GTA:SA missions on MTA co-op. You can see more informations on the discord server Discord server: https://discord.gg/GBPZ9GvVdw
×
×
  • Create New...