Jump to content

Hydra

Members
  • Posts

    372
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Hydra

  1. 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.
  2. Hydra

    vehicle

    wdym, it should work for all vehicles
  3. 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)
  4. Hydra

    vehicle

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

    vehicle

    function b(thePlayer, matchingDimension) for k, v in ipairs(getElementsByType("vehicle")) do destroyElement(v) end end addEventHandler("onColshapeHit", yourColshape, b)
  6. Look here: https://community.multitheftauto.com/
  7. 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
  8. Can you be more explicit please with your question? Because it is not understood what you mean and we cannot help you
  9. 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! :))
  10. setAmbientSoundEnabled( "gunfire", false ) It is given as an example on the wiki lmao https://wiki.multitheftauto.com/wiki/SetAmbientSoundEnabled
  11. 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
  12. function sp() spawnPlayer(source, 0, 0, 5) fadeCamera(source, true) setCameraTarget(source, source) end end addEventHandler("onPlayerJoin", root, sp)
  13. 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
  14. Hydra

    Time?

    isn't getRealTime() used for getting the current time from player computer?
  15. I didn't have problems using that shader, maybe you changed something. Use the example from 2nd comment on that post
  16. Look at this topic, there is a shader in the comments:
  17. Ai putea fi mai explicit la partea ,,puteai incarca o masina la statiile de incarcare"?
  18. Maybe if you create a corona marker and attach it to the vehicle tail lights.
  19. 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
  20. Use this example from wiki: https://wiki.multitheftauto.com/wiki/SetAccountData
  21. 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
  22. function b() outputChatBox("Your language changed succesfully") end addEventHandler("onClientLocalizationChange", getRootElement(), b) I'm not sure if this event helps anything because you have to disconnect from the server to change the language. But I will still leave this suggestion here
×
×
  • Create New...