Jump to content

Search the Community

Showing results for tags 'vehicle'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

  1. Eu estava tentando colocar esse spawn de vehiculo por acl, mas não estou conseguindo. Alguém consegue me ajudar? veh = {} addEventHandler("onResourceStart", resourceRoot, function() for i, v in ipairs(spawn) do local veh = createVehicle(v[1], v[2], v[3], v[4], v[5], v[6], v[7]) setElementCollisionsEnabled(veh, false) setElementData(veh, "vehSpawn", true) setElementFrozen(veh, true) setVehicleDamageProof(veh, true) end end) addEventHandler("onVehicleEnter", getRootElement(), function(player) if source and getElementType(source) == "vehicle" then local model = getElementModel(source) local x, y, z = getElementPosition(source) if getElementData(source, "vehSpawn") then if veh[player] and isElement(veh[player]) then destroyElement(veh[player]) end veh[player] = createVehicle(model, x+3, y, z) warpPedIntoVehicle(player, veh[player]) end end end) addEventHandler("onPlayerWasted", root, function() if veh[source] and isElement(veh[source]) then destroyElement(veh[source]) end end) addEventHandler("onPlayerLogout", root, function() if veh[source] and isElement(veh[source]) then destroyElement(veh[source]) end end) addEventHandler("onPlayerQuit", root, function() if veh[source] and isElement(veh[source]) then destroyElement(veh[source]) end end)
  2. hi guys i want create gui like this to show the car inside How should I do this? image link https://ibb.co/87hYNKF
  3. hi guys How can I move a car without a player in that car?
  4. Xwaw

    Nitro value

    Hello Is it possible to somehow check the value of how much NOS you have in the vehicle because I am looking for but not which do not seem to work as if they were not at all. I need this value to make a bar that will show how much nitro the vehicle has.
  5. how to create any one vehicle that is listed in the table, with a delay per minute and a filter for re-creating the transport and the maximum number (car dealership)? server carTable = { -- id price x y z rz {475,5000,-2149,-775.5,32,-90}, {411,5000,-2149,-769.5,32,-90}, {416,5000,-2149,-763.5,32,-90}, {466,5000,-2149,-757.5,32,-90}, } icon = { {1239,3,-2137,-746,32} } function sveh (id) for k,v in pairs(carTable)do createVehicle(v[1],v[3],v[4],v[5],0,0,v[6]) end end addEventHandler('onResourceStart',resourceRoot,sveh) function pick () for k,v in pairs(icon) do local sicon = createPickup(v[3],v[4],v[5],v[2],v[1],0) end end addEventHandler('onResourceStart',resourceRoot,pick) addEventHandler('onPickupHit',resourceRoot, function(e) if isElement(e)then triggerClientEvent('visibleSalonWindow',e,e) end end) client carTable = { {475,5000,-2149,-775.5,32,-90}, {411,5000,-2149,-769.5,32,-90}, {416,5000,-2149,-763.5,32,-90}, {466,5000,-2149,-757.5,32,-90},} function drawTextOnPosition(x,y,z,price,id,number) if (getDistanceBetweenPoints3D(x,y,z,getElementPosition(localPlayer))) < 5 then local coords = {getScreenFromWorldPosition(x,y,z)} if coords[1] and coords[2] then dxDrawText("Транспорт продается",coords[1],coords[2],coords[1],coords[2], tocolor(0,0,0), 1.01, "default-bold", 'center', 'center') dxDrawText("Транспорт продается",coords[1],coords[2],coords[1],coords[2], tocolor(156,98,40), 1, "default-bold", 'center', 'center') dxDrawText("Модель: "..getVehicleNameFromModel( id )..'('..id..')',coords[1],coords[2]+20,coords[1],coords[2]+20, tocolor(0,0,0), 1.01, "default-bold", 'center', 'center') dxDrawText("Модель: "..getVehicleNameFromModel( id )..'('..id..')',coords[1],coords[2]+20,coords[1],coords[2]+20, tocolor(176,180,176), 1, "default-bold", 'center', 'center') dxDrawText("Стоимость "..price..'$.',coords[1],coords[2]+40,coords[1],coords[2]+40, tocolor(0,0,0), 1.01, "default-bold", 'center', 'center') dxDrawText("Стоимость "..price..'$.',coords[1],coords[2]+40,coords[1],coords[2]+40, tocolor(176,180,176), 1, "default-bold", 'center', 'center') end end end addEventHandler('onClientRender',root,function() for k,v in pairs(carTable) do drawTextOnPosition(v[3],v[4],v[5]+1,v[2],v[1]) end end) GUIEditor = { button = {}, window = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(0.36, 0.18, 0.27, 0.64, "Атосалон Эконом-класса", true) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(0.39, 0.93, 0.22, 0.05, "Закрыть", true, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.label[1] = guiCreateLabel(0.05, 0.03, 0.92, 0.03, "В данном автосалоне вы сможете купить ато Эконом класса :", true, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[1], "center") GUIEditor.label[2] = guiCreateLabel(0.05, 0.10, 0.92, 0.14, "Infernus, Sabre, Glendale, Sabre Turbo", true, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "default-bold-small") GUIEditor.label[3] = guiCreateLabel(0.05, 0.61, 0.92, 0.03, "Авто добовляется из-за рубежа каждые 2 часа", true, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") GUIEditor.label[4] = guiCreateLabel(0.05, 0.76, 0.92, 0.03, "На данный момент ожидаем поставку ", true, GUIEditor.window[1]) guiSetFont(GUIEditor.label[4], "default-bold-small") GUIEditor.label[5] = guiCreateLabel(0.05, 0.79, 0.92, 0.03, "До прибытя осталось: \"\"", true, GUIEditor.window[1]) guiSetFont(GUIEditor.label[5], "default-bold-small") GUIEditor.label[6] = guiCreateLabel(0.05, 0.83, 0.92, 0.03, "Стоимость: $\"\"", true, GUIEditor.window[1]) guiSetFont(GUIEditor.label[6], "default-bold-small") guiSetVisible(GUIEditor.window[1],false) end ) bindKey( "x", "down", function( ) local state = not guiGetVisible(GUIEditor.window[1] ) guiSetVisible(GUIEditor.window[1], state ) showCursor( state ) end ) function visible () if guiGetVisible(GUIEditor.window[1]) then guiSetVisible(GUIEditor.window[1],false) showCursor(false) else guiSetVisible(GUIEditor.window[1],true) showCursor(true) end end addEvent('visibleSalonWindow',true) addEventHandler('visibleSalonWindow',localPlayer,visible) addEventHandler('onClientGUIClick',resourceRoot,function(button,state) if button == "left" and state == "up" then if source == GUIEditor.button[1] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end end)
  6. Nesse script abaixo se você arrastar o item do inventario chamado "chavedefenda" ele executa uma função eu gostaria q esse item roubasse cada pneu do carro ou seja o jogador chega perto do pneu e arrasta a chave de fenda pro carro ai ele começa a roubar o pneu do carro quando ele termina de roubar o pneu vai pro inventario e o pneu do carro some automaticamente o mesmo serve pra quando o jogador tem o pneu no inventario ai arrasta a chave de fenda pro carro fazendo assim ele coloca o pneu de volta no carro ou seja se ele tiver o pneu no inventario e o carro não tiver um ou mais pneus ele coloca o pneu no lugar e ele sai do inventario do jogador quem conseguir fazer pra mim elseif getElementType(target) == "vehicle" then --Interação com veículos if item == "toolbox" then --Reparar o veículos drop = false local health = getElementHealth(target) if health >= 1000 then sendNotification(player, "error", "O veículo não precisa de reparo.") return false end local result = takeItem(player, slot, "toolbox", 1) if result then closeInventory(player) setPedAnimation(player, "OTB", "betslp_loop", 0, true, true, false) toggleControl(player, "fire", false) toggleControl(player, "jump", false) setElementFrozen(target, true) toggleAllControls(player, false) playSound3D(target, "fix.mp3", 20) sendProgressbar(player, 15, "Reparando o veículo...") cooldown[player] = setTimer(function() setPedAnimation( player, "ped", "facanger", 0, false, false, false) toggleControl(player, "fire", true) toggleControl(player, "jump", true) setElementFrozen(target, false) toggleAllControls(player, true) setElementHealth(target, 1000) fixVehicle(target) cooldown[player] = nil sendNotification(player, "success", "Veículo reparado com sucesso.") end, 1000*15, 1) else sendNotification(player, "error", "Ocorreu um erro ao usar este item.") end elseif item == "chavedefenda" then drop = false local theVehicle = getPedOccupiedVehicle ( player ) if ( theVehicle ) then sendNotification(player, "error", "Desça do veiculo primeiro") return false end local result = takeItem(player, slot, "chavedefenda", 1) if result then closeInventory(player) setPedAnimation(player, "OTB", "betslp_loop", 0, true, true, false)--animação roubando toggleControl(player, "fire", false) toggleControl(player, "jump", false) setElementFrozen(target, true) toggleAllControls(player, false) sendProgressbar(player, 15, "Roubando o pneu...") cooldown[player] = setTimer(function() setPedAnimation( player, "ped", "facanger", 0, false, false, false) toggleControl(player, "fire", true) toggleControl(player, "jump", true) setElementFrozen(target, false) toggleAllControls(player, true) --setElementData(target, "Gasolina", gasolina + 25) cooldown[player] = nil sendNotification(player, "success", "você roubou o pneu do veiculo com sucesso") end, 1000*15, 1) else sendNotification(player, "error", "Ocorreu um erro ao usar este item") end end end
  7. I tested the Unlimited-Vehicle-Master: https://github.com/alexaxel705/Unlimited-Vehicle/blob/master/server.lua Even though the author makes the Vehicle Type and the Handling of 411 for all cars. But the car might be made with a S.W.A.T wheel size. So the car looks like floating on the ground. Could anyone be able to change the wheel size if I spawn a car?
  8. The question is the following needs to get an item from the server side to the client side, how can I do it? (Elements such as markers, vehicles etc.)
  9. Can you give me a code to take a car from a button in a window? Meaning, I want to press button 1 and take a car. pleaseee in arabic : شباب ممكن كود يعني اضغط على زر من نافذة ويعطيني سيارة . بيللييز
  10. mtasa://51.254.235.204:22004 Introduction: Forseti is an old school Freeroam/RPG with a retro theme. We wanted to re-capture the nostalgia of GTA San Andreas. Well, what can you do in this server? Let's give you some examples. You can: Buy houses, change property name, lock/unlock them, set them for sale, and change their price & more. Buy vehicles, add unique upgrades, park them, change their price and set them for sale, etc. Trade your vehicles with other players, buy and sell them for amounts you set. This includes new vehicles we added ourselves, as well as new upgrades. You can create or join gangs and fight with others for very valuable areas on the map. You can capture or invade gang bases and make use of the amazing features they have. You can buy gang vehicles for your base, buy ammo from your base for a cheaper price, upgrade your base protection, add homing missiles that will protect you from attackers. We also went ahead and re-balanced/replaced some weapons that were inferior to encourage more players get into these big fights. It's worth mentioning that these fights are completely optional and if you want to play more casually, you can completely avoid them if you are not interested. The gang bases are located in LV only. Cut the crap, how do I make money? We have a few options. You can press 'F3' to open GPS menu and go to mission locations. Driving a taxi: You can pick up customers and drop them off where they want to go. Simple and efficient. Fishing: You can buy a fishing rod for $50 from fishermen at coast areas and fish anywhere you want. Just press 'B' and wait for the fish to bite, then press 'B' again to reel them in. You will get a unique fish depending on server time and weather. Let's not spoil it further. Press 'I' to open your fish inventory. Lumberjack Work: You can buy an axe from weapon shops or lumberjacks on the map. Wood you cut will stay in your inventory. You can see how much wood you have by pressing 'I'. You can sell them back to lumberjacks for a good price. Drug Delivery: You can become a dealer at San Fierro and deliver the 'stuff' to junkies. Try not to be seen though. This mission has a built-in leveling system of it's own. More you do it, better rewards you will get. Zombie Purifier: Become a purifier at Area 51 and help the army clean up zombie infested areas. Be careful though. If you get bit you will get infected. It might not end pretty. Deathmatch: Do you have something to prove? Well then. You can join the current deathmatch by pressing 'F2'. You can pick up weapons from the area and fight each other. You get money every time you kill someone, and you get punished for dying." Recovering from a bad divorce? Your wife keeps threatening to take the kids? Went broke already? We got you! Forseti Bank will happly provide you with a loan* and take it back using force if you haven't paid for 4 weeks* in real time! *(1): Loans include interest rate 100% which is a totally humanly amount to take. You should be able to make this kind of money basically working for your all life. But don't worry. Our system has never shown to have failed. *(2): four weeks actually means 1 or 2 hours but don't worry. We will not demand any payment after your death. The map itself is filled with vehicles, why would I pay for one? You can buy vehicles from the car icons on the map ('F11'). Every vehicle shop is different, so don't forget to check other shops if you can't find the vehicle you want. --Player owned vehicles are faster than other vehicles and you can change their properties permanently. You also have full control over them. --You can enter Pay 'N' Spray to paint your vehicle, change headlights, and add upgrades. --Upgrades include: Bumpers, Wheels, Spoilers etc. & Adding a Neon to your vehicle and unlocking burnout. --You can spawn your vehicle, despawn it, lock it, start/stop engine and park it from our main menu. ('F1' or 'M') --You can also use the /car 1, car 2 etc. commands to spawn your vehicles right in front of you. --You can press 'L' to lock and unlock your vehicle from the inside. Other players can't lock your vehicle. --1-2-3-4-5-6-7-8 keys are used for some cool features when you are driving a vehicle. Open trunks, doors, change suspension etc. --If you park your vehicle, it will automatically respawn at the parked location and it will be locked. --You can set your vehicles for sale and other players can buy them. When you trade a vehicle, it'll keep the upgrades. --You can track the vehicle economy on our Discord server. Simply take a look at the #vehicles channel. --Every vehicle has a certain stock and it might run out, so buying vehicles with your spare money and selling them is a viable strategy. --Stocks are added every now and then depending on vehicle rarity, so don't worry, you will get a chance to buy them eventually. --Be careful not to leave your vehicles unlocked, other players can vandalize them at Pay 'N' Spray. ;)", I have 4 children and I have nowhere to live! Help me! You are in luck! We have a house system that's detailed but simple and fun to use. But how do you buy a house and what can you do with it? Houses not only provide you with a safe area, but they have other benefits as well. You can see the houses that are on sale on your map. You can walk to a house's pickup in front of their door and see all the information. When you buy a house, you will be granted full control over it. Such as: --If your house is a business, ALL money that are spent in there are yours. --Example: If you own LS Bistro you will gain all the money other players spend there. --You can set any house you own as your spawn point. If you die, you will respawn at your bed. --You will not take damage in your own house. --You can rename your property to whatever you want. --You can lock and unlock your house for other players. Don't want to be bothered? Lock it. --You can set your house on sale or take it off the sale for other players. Bought a house for 35k and you want to sell it for 35m? It's scummy, but go ahead. --You can change your house's sale value. Make it more expensive or cheaper. --You can instantly sell it back for a little less value. Took a loan and can't pay back? Maybe there's a way out. Did I say loans? That's a whole another thing, let's get back to our topic. You can see the houses you own on your main menu ('F1' or 'M') If you want to see where your house is located, clicking on it will start GPS.", I feel alone in this cold world! Someone take me in! Don't worry, you can join a gang or make your own for 50k. A gang leader can: --Invite players --Kick members --Change member ranks --Invade other gang bases --Change gang name --Change gang tag --Change gang color --Set aside some money for other members to spend on stuff --Upgrade gang gates, make them more resistant to explosions --Buy homing missiles that will attack incoming hostiles Capturing a gang base has a lot of good benefits. Such as spawning it as your spawn point, a steady money stream, buying weapons for cheaper, or using special gang vehicles. Note: You can ping a location on the map for your gang mates. (F11 + X + Right click) That's cool and all, but I got banned in every server I played on. What are the rules? We believe strict rules kill the fun. You are allowed to do anything you want and mess around as long as you aren't ruining it for others. That's all? No. We have a lot of small details and more big features that will make the server feel alive. GTA San Andreas interiors with their unique uses, walking food vendors and vehicles, automated trains that will take a break at stations, custom maps, some mechanical changes, fitting unique weather cycles for every state of it's own that will change on a rotation and much more. So go ahead! Do some fishing for random loot, cut the trees around the map, drive a taxi for NPCs, smuggle drugs or help the army clean up zombie infested areas. There's a bit too much to write about, so we will let you experience them on your own. No point in turning this into a book. Here are some random screenshots from the server we like:
  11. Buenas, tengo un problema que me está volviendo loco: Hace días subí un script mío a un servidor, se trata de conducir una furgoneta con un blip pegado al mismo. Todo funcionaba correctamente hasta que ayer en una modificación tuve que reiniciar el script dentro del mismo servidor ( tenemos un editor de código), y al reiniciarlo, el blip se crea junto con el camión pero el BLIP no se pega al vehículo, el attach no funciona. Hay otro script mío parecido también subido y ese si trabaja bien, sólo tengo ese problema con este, y no entiendo nada porque sólo cambie unas coordenadas, sólo eso. Intenté probar el código antes de los cambios y se bugea igual, cosa que no debería pasar. Será alguno choque entre otros scripts? Plot twist al probarlo en mi servidor local si trabaja correctamente, y en el servidor sucede algo raro: Algunos jugadores dicen que vieron el blip moverse con el vehículo, otros dijeron verlo estático en el punto de origen. ¿A qué se debe eso?
  12. I decided to dive into the world of rotations. I know this might be incomplete and even incorrect: function openCapo() local theVeh = getPedOccupiedVehicle(localPlayer) local value1 = guiScrollBarGetScrollPosition(caposcroll) if theVeh and value1 then setVehicleComponentRotation (theVeh, bonnet_dummy, value1, rY, rZ) end end I've a GUI already created, and the visibility key bound. The first scrollbar (caposcroll) should affect the bonnet_dummy. This was made with absolute basic thinking process: "if I want doors to open, I need to get the position of the scrollbar". However, I know I still need to tell the game what's the math.min, what's the math.max, and, I think, to also give the order to respond only when the scrollbar is moved. I would appreciate a finger to point me in the right direction.
  13. Hello dear friends, first of all, I am writing this text using translate. I apologize to everyone for my bad English. Forgive me if I put the issue in the wrong section. - I want to enlarge the wheels of the vehicles and make camber adjustments and I came across this content in the forum https://forum.multitheftauto.com/topic/92222-custom-wheel/ but the system in this content applies only to the front wheels and it goes underground when the wheel grows and how I will fix these errors from you I want your help, thank you very much in advance. :) Client-Side
  14. So basically I wanna have a marker in which you enter, a menu will appear and by pressing the arrows you can click between the different (vehicle) pictures (of what are in the library of the resource) and the name of the vehicle should appear below each picture. Is it possible to make a script like this? I really need your help guys, I already tried a lot but failed so far on this one..
  15. Tem como usar o setVehicleComponentScale para aumentar peças do veiculo para todos os players?Tem que usar triggerClientEvent?Tentei usar mas n consegui,n sei usar essa função
  16. Estou querendo fazer um script que quando clico no carro,me mostre as coordenadas da roda,mas a função getVehicleComponentPosition é somente do lado client e não sei jogar elas pro lado serve
  17. This is my first post, so forgive me if i make any mistakes! I'm creating a Police Script where i get to a random Ped and type a command(i'll change it to bind later) and it creates a Marker attached(0,1,0) to the Source that if it touches the Ped will activate a function that makes him follow the Marker. And this is the function so far: Everything is Server-Side (because i suck at Client-Side) function func1(p) local x,y,z = getElementPosition(p) Marker = createMarker(x, y, z, "cylinder", 1, 255, 0, 0, 170) attachElements(Marker,p, 0,1,0) addEventHandler("onMarkerHit", Marker, func2) addEventHandler("onMarkerHit", Marker, func3) end addCommandHandler("render", func1) function fun2(p,_) if getElementType ( p ) == "ped" then x2,y2,z2 = getElementPosition(Marker) x1,y1,z1 = getElementPosition(p) rx,ry,rz = findRotation3D(x1,y1,z1,x2,y2,z2) setElementRotation(p, rx+0,ry+0,rz+0) setPedAnimation(p, "ped", "walk_player") setTimer(function() bunda(p,_) end, 999, 1) end end And then here's the devil: function func3(p, ped) if not getElementType ( ped ) == "ped" then return end --else return end --carro = getElementType ( carro ) carro = getElementsByType("vehicle") --psha = getElementColShape(p) --elements = getElementsWithinColShape(psha) --if elements == carro == "vehicle" then --local vee = getElementsByType(carro) -- and getElementType ( carro ) == "vehicle" then --if getElementType(p2) == "player" then --local vei = getPedOccupiedVehicle(p2) --addEventHandler("onColShapeHit", psha, function(hit) --if carro == "vehicle" then addEventHandler("onVehicleEnter", root, function() setTimer(function() setPedAnimation(ped, false) vei = getPedOccupiedVehicle(p) warpPedIntoVehicle ( ped, root, math.random(2,4) ) end, 999, 1) timers = getTimers ( 1000) for timerKey, timerValue in ipairs(timers) do killTimer ( timerValue ) end destroyElement(Marker) --end end) end --end --end I tried everything my :~ty skills allowed me to and now i'm out of ideas on how to solve this without Client-Side. The idea is when the Ped approaches the car, it chooses between seats 2 or 3 and enters the car, but as i'm not creating the car in the script, instead you should be able to spawn any vehicle and as a Cop you could arrest people and take them to the car. Sorry for the ugly-ass code. EDIT: Making the Ped follow the Player and when the Player enters a Vehicle the Ped is warped into the back seat is fine too.
  18. I created a script to set texture when player joins the car, (EngineApplyShaderToWorldTexture), but work only client-side, i wanna other players see the texture from the car, not only the local player see self texture. How i can create a script like this?
  19. Estou tentando criar uma função que faça com que a porta do veículo em que o Player estava seja fechada assim que ele deixar o carro. Não sei se isso é possível, mas tentei da seguinte maneira, porém sem sucesso: local theVehicle = getPedOccupiedVehicle ( source ) function SairVeiculo (theVehicle, leftSeat, jackerPlayer) if leftSeat == 0 and not jackerPlayer then setVehicleDoorOpenRatio ( theVehicle, 2, 0, 2500) setVehicleDoorOpenRatio ( theVehicle, 4, 0, 2500) end end addEventHandler("onPlayerVehicleExit", root, SairVeiculo) Se houver alguma maneira e puderem me ajudar, agradeço!
  20. Hello guys i have an idea but i cant make the script because im new in scripting I want to get vehicules into marker and the i will press a button and then a countdown will display in screen (2 minutes) and then the car will be deleted and i get 5000 dollars
  21. Hello all! Please help, I need to make a driving ped. So I've tried to create ped and create a vehicle and make ped drive to me, but soon I'm understood that I don't know how to make ped choose right direction (turning left or right) and go forward to me... Tried to investigate CrystalMV's NPC HLC scripts, but cannot understand how it works... So, please, somebody, help me code and understand how ur code works. I need a simple NPC turning into the right side and accelerate then stop using handbrake or brake_reverse and that's all. I've spend many hours thinking how to code it, but decision still not found, so I'm here..
  22. I created some handling with handling editor script, and i want set some cars default handling to these handlings with a script, when a player spawn this car, the handling in the car automatic set to the edited hand.. But how can i do this?
  23. I need help to do an script that makes any car ID turn up and down the lights like the ZR350 does, but i dont know how the :O do it, pls someone help me with this.
  24. Alguém pode me ajudar com um script? eu consegui criar um veiculo para a acl "admin" através do comando "carro". Porém não consigo fazer para que respawne apenas um carro por vez. Toda vez que digita o comando "carro" ele continua spawnando o veiculo um do lado do outro. function veiculodayz(thePlayer) accountname = getAccountName(getPlayerAccount(thePlayer)) if isObjectInACLGroup("user." .. accountname, aclGetGroup("Admin")) then do local x, y, z = getElementPosition(thePlayer) veh = createVehicle(489, x+3, y, z) setVehicleColor(veh,0,0,0) vehCol = createColSphere(x, y, z, 2.5) attachElements( vehCol, veh, 0, 0, 0 ) setElementData(vehCol,"parent",veh) setElementData(veh,"parent",vehCol) setElementData(vehCol,"vehicle",true) setElementData(vehCol,"Tire_inVehicle",4) setElementData(vehCol,"Engine_inVehicle",1) setElementData(vehCol,"Parts_inVehicle",1) setElementData(vehCol,"fuel",10000) end end end addCommandHandler("carro", veiculodayz)
  25. Regeneration (health) This resource lets you regenerate player and vehicle* health. It is not an unique idea, I know... but there weren't good implementations for it at the community resource list. So that's why I share this with YOU. * Vehicle regeneration for the driver only. Version 1.0.0 Not compiled! Smooth health regeneration No UI, just the manager Settings (Admin panel) Settings Regeneration [on/off] (player/vehicle) Regeneration value (player/vehicle) Regeneration delay (player/vehicle) Regeneration [on/off] while the vehicle is burning Download link: https://community.multitheftauto.com/?p=resources&amp;s=details&amp;id=15757 Take a quick look into the source code (v1.0.0) Client Server Meta
×
×
  • Create New...