Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: klawiszu
1. Zmiana klawiszu zapinania pasu na OWL GAMING
Siemanko, potrzebuje zmieni? bind na pasy, poniewa? koliduje si? on z Voice chatem. Jest to trudne poniewa? nie ma binda tylko pewna funkcja.

O to linijki, kt?re s? odpowiedzialne za pasy
[code]local noBelt = { [431] = true, [437] = true }
function seatbelt(thePlayer)
if getPedOccupiedVehicle(thePlayer) then
local theVehicle = getPedOccupiedVehicle(thePlayer)
if (getVehicleType(theVehicle) == "BMX" or getVehicleType(theVehicle) == "Bike") or (noBelt[getElementModel(theVehicle)] and getVehicleOccupant(theVehicle, 0) ~= thePlayer) then
outputChatBox("Ten pojazd nie ma pas?w!", thePlayer, 255, 0, 0)
else
if (getElementData(thePlayer, "seatbelt") == true) then
exports.anticheat:changeProtectedElementDataEx(thePlayer, "seatbelt", false, true)
outputChatBox("Odpinasz pasy.", thePlayer, 255, 0, 0)
exports.global:sendLocalMeAction(thePlayer, "odpina pasy.")
else
exports.anticheat:changeProtectedElementDataEx(thePlayer, "seatbelt", true, true)
outputChatBox("Zapinasz pasy.", thePlayer, 0, 255, 0)
exports.global:sendLocalMeAction(thePlayer, "zapina pasy.")
end
end
end
end
addCommandHandler("pasysamo", seatbelt)
addCommandHandler("pasy", seatbelt)
addEvent('realism:seatbelt:toggle', true)
addEventHandler('realism:seatbelt:toggle', root, seatbelt)

function removeSeatbelt(thePlayer)
if getEleme...