-
Posts
373 -
Joined
-
Last visited
-
Days Won
12
Everything posted by Hydra
-
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
-
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.
-
wdym, it should work for all vehicles
-
--// 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)
-
Wait a few minutes, I'm gonna give you an answer soon
-
function b(thePlayer, matchingDimension) for k, v in ipairs(getElementsByType("vehicle")) do destroyElement(v) end end addEventHandler("onColshapeHit", yourColshape, b)
-
Look here: https://community.multitheftauto.com/
-
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
-
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! :))
-
setAmbientSoundEnabled( "gunfire", false ) It is given as an example on the wiki lmao https://wiki.multitheftauto.com/wiki/SetAmbientSoundEnabled
-
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
-
function sp() spawnPlayer(source, 0, 0, 5) fadeCamera(source, true) setCameraTarget(source, source) end end addEventHandler("onPlayerJoin", root, sp)
-
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
-
isn't getRealTime() used for getting the current time from player computer?
-
I didn't have problems using that shader, maybe you changed something. Use the example from 2nd comment on that post
-
Look at this topic, there is a shader in the comments:
-
Ai putea fi mai explicit la partea ,,puteai incarca o masina la statiile de incarcare"?
-
Maybe if you create a corona marker and attach it to the vehicle tail lights.
-
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
-
Money and health are not saved when you log out of your account
Hydra replied to Egor_Varaksa's topic in Scripting
Use this example from wiki: https://wiki.multitheftauto.com/wiki/SetAccountData -
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