-
Posts
419 -
Joined
-
Last visited
-
Days Won
1
Everything posted by nikitafloy
-
Переписка с мая 2017. Видимо, только сейчас опомнился. Мне так и не ответил.
-
хз. Ты писал мне или нет, но объясняю еще раз. Есть функция, которая вызывается после покупки автомобиля. Нужно, чтобы после вызова этой функции вызывалась функция из другого ресурса, которая устанавливает номер на авто. А вот какие аргументы посылать - смотреть в номерах. Возможно, придется сохранять данные, чтобы их передавать. Зависит от написанного кода.
- 1 reply
-
- 1
-
- mta
- недоскриптер
-
(and 1 more)
Tagged with:
-
Опиши для себя как работает коробка передач. Дальше проще.
-
Creating Elements (Vehicles) for each player only
nikitafloy replied to DriFtyZ's topic in Scripting
setElementVisibleTo -
Optimally No more than 70%
-
Hello. I saw the car tuning with stickers there. On car door. I use this resource - https://community.multitheftauto.com/index.php?p=resources&s=details&id=12840 and there texture apply on top. I want do it on left-side, right-side, ... and etc. - side How can i do it? And how can i use more than 1 texture on car?
-
checkvehicle(car) use trigger if u want to call this on client side
-
then u should use this getTeamName if getTeamName ( player ) == 'there ur name of team' then outputChatBox(..., player, ...) end
-
My friend have problem with MTA: Him PC much lag on all servers. MTADiag: https://pastebin.mtasa.com/589741004
-
How do you do this GUI?
-
Teach me shader, pls, lol
-
U can use trigger with this command, i think https://wiki.multitheftauto.com/wiki/Server_Commands#aexec
-
К другим серверам подключается? Все гуд?
-
Shut down player use this command in ACL.
-
local default_handling = {} function wheelie(player) local car = getPedOccupiedVehicle(player) if car then --Sabre if getElementModel(car) == 475 then if default_handling[car] ~= true then setVehicleHandling(car, "centerOfMass", { 0.0, -0.65, 0.1 }) setVehicleHandling(car, "tractionLoss", 5.90) setVehicleHandling(car, "engineAcceleration", 22.0) setVehicleHandling(car, "engineInertia", 1.0) setVehicleHandling(car, "suspensionAntiDiveMultiplier", 0.0000000000001) default_handling[car] = true else -- there default handling default_handling[car] = nil end end end end function bindKeyOnJoin() bindKey(source, "M", "down", wheelie) end addEventHandler("onPlayerJoin", root, bindKeyOnJoin) function bindKeyOnResStart() for i, player in ipairs(getElementsByType('player')) do bindKey(player, "M", "down", wheelie) end end addEventHandler("onResourceStart", resourceRoot, bindKeyOnResStart) if you want timer: function wheelie(player) local car = getPedOccupiedVehicle(player) if car then --Sabre if getElementModel(car) == 475 then setVehicleHandling(car, "centerOfMass", { 0.0, -0.65, 0.1 }) setVehicleHandling(car, "tractionLoss", 5.90) setVehicleHandling(car, "engineAcceleration", 22.0) setVehicleHandling(car, "engineInertia", 1.0) setVehicleHandling(car, "suspensionAntiDiveMultiplier", 0.0000000000001) setTimer(function(car) -- there default handling end, 1000, 1, car) end end end function bindKeyOnJoin() bindKey(source, "M", "down", wheelie) end addEventHandler("onPlayerJoin", root, bindKeyOnJoin) function bindKeyOnResStart() for i, player in ipairs(getElementsByType('player')) do bindKey(player, "M", "down", wheelie) end end addEventHandler("onResourceStart", resourceRoot, bindKeyOnResStart)