Jump to content

saluta

Members
  • Posts

    120
  • Joined

  • Last visited

Everything posted by saluta

  1. Fixed bugs missing but now there are still bugs next photo Please help
  2. Full code client.lua Toner Donwload client.lua Toner client.lua
  3. а вы спойлер смотрели хоть? я там ссылку на изображение скинул там и есть отладка кода.
  4. function setChipVehicle(player, vehicle, handlings, name, money) if isElement(vehicle) then if getPlayerMoney(player) >= tonumber(money) then if type(handlings) == "string" then local strArray = {} for token in string.gmatch(handlings, "[^%s]+") do table.insert(strArray,token) end local i = 2 outputChatBox("#1E90FF[Механик] #FFFFFFВы успешно установили чип '"..name.."' за "..money.." р.", player, 255, 255, 255, true) takePlayerMoney(player, money) setElementData(vehicle, "stageNum1", 0) setElementData(vehicle, "stageNum2", 0) setElementData(vehicle, "stageNum3", 0) for k,v in pairs(handlingNamesTable) do setVehicleHandling(vehicle, v, strArray[i]) if v == "modelFlags" or v == "handlingFlags" then setVehicleHandling(vehicle, v, tonumber("0x"..strArray[i])) elseif v == "driveType" then if strArray[i] == "4" then setVehicleHandling(vehicle, v, "awd") end end i = i + 1 end elseif type(handlings) == "table" then for k,v in pairs(handlings) do end end else outputChatBox("#1E90FF[Механик] #FFFFFFУ вас недостаточно средств!", player, 255, 255, 255, true) end end end addEvent("setChipVehicle",true) addEventHandler("setChipVehicle",root,setChipVehicle)
  5. function setChipVehicle(player, vehicle, handlings, name, money) if isElement(vehicle) then if getPlayerMoney(player) >= tonumber(money) then if type(handlings) == "string" then local strArray = {} for token in string.gmatch(handlings, "[^%s]+") do table.insert(strArray,token) end local i = 2 outputChatBox("#1E90FF[Механик] #FFFFFFВы успешно установили чип '"..name.."' за "..money.." р.", player, 255, 255, 255, true) takePlayerMoney(player, money) setElementData(vehicle, "stageNum1", 0) setElementData(vehicle, "stageNum2", 0) setElementData(vehicle, "stageNum3", 0) for k,v in pairs(handlingNamesTable) do setVehicleHandling(vehicle, v, strArray[i]) if v == "modelFlags" or v == "handlingFlags" then setVehicleHandling(vehicle, v, tonumber("0x"..strArray[i])) elseif v == "driveType" then if strArray[i] == "4" then setVehicleHandling(vehicle, v, "awd") end end i = i + 1 end elseif type(handlings) == "table" then for k,v in pairs(handlings) do end end else outputChatBox("#1E90FF[Механик] #FFFFFFУ вас недостаточно средств!", player, 255, 255, 255, true) end end end addEvent("setChipVehicle",true) addEventHandler("setChipVehicle",root,setChipVehicle) ругается на строку setVehicleHandling(vehicle, v, strArray). Помогите пожалуйста
  6. Спасибо огромное, заработало
  7. setTimer(function() if getElementData(getPedOccupiedVehicle ( localPlayer ), "leftflash" ) then if veh then else playSound("files/povorot.mp3",false) end end if getElementData(getPedOccupiedVehicle ( localPlayer ), "rightflash" ) then if veh then else playSound("files/povorot.mp3",false) end end if getElementData(getPedOccupiedVehicle ( localPlayer ), "allflash" ) then if veh then else playSound("files/povorot.mp3",false) end end end, interval * 1000 , 0) Помогите
  8. Please help, my code: setTimer(function() if getElementData(getPedOccupiedVehicle ( localPlayer ), "leftflash" ) then if veh then else playSound("files/povorot.mp3",false) end end if getElementData(getPedOccupiedVehicle ( localPlayer ), "rightflash" ) then if veh then else playSound("files/povorot.mp3",false) end end if getElementData(getPedOccupiedVehicle ( localPlayer ), "allflash" ) then if veh then else playSound("files/povorot.mp3",false) end end end, interval * 1000 , 0)
  9. Hello everyone, dear programmers! I am recruiting people to my team! Looking for: -Mappers -Scripters [Lua, C ++ (if you have experience with this)] I'm not going to deceive anyone, I'm waiting for your answer! I'm going to open a large-scale project together with people who are typed in a team! Why is he so "large-scale"? The answer is in discord, let's talk about everything, but please urgently need people in the team! ! !
  10. Привет всем уважаемые программисты! Набираю людей к себе в команду! Нужны : -Мапперы -Скриптеры [Lua, C++(если имеете опыт с этим)] Никого обманывать не собираюсь, жду вашего ответа! Я собираюсь открыть вместе с людьми которые набируться в команде, масштабный проект! Чем же он такой "масштабный" ? Ответ - в дискорде, поговорим всё обьясню, только пожалуйста нужно срочно люди в команде ! ! !
  11. Помогите исправить ошибку пожалуйста, и ищу скриптера чтобы решить эту проблему, будем работать вместе! Вот сама ошибка вывёл её у себя на сервере с помощью debugscript3 https://i.ibb.co/rQ0wV86/mta-screen-2021-01-06-18-40-27.png
  12. Спасибо, но это долго можно как то её быстро исправить пожалуйста? https://ibb.co/hg9mSQW
  13. Пожалуйста, помогите. Срочно нужно.Вот сама ошибка, выложил уже её на форуме.
×
×
  • Create New...