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: wylaczal
1. interakcja po wyjsciu z auta zeby sie automatycznie wylaczal
Witam potrzebuje do tego kodu doda? ?eby interakcja po wyjsciu z pojazdu sie automatycznie wylaczala gdy? si? buguje


kod:
[quote]--[[
@author: nanKy ([email protected])
@resource: interaction
@copyright: u?ywaj ile chcesz, je?eli szanujesz moj? prac? to nie usuwaj notki o autorze.
]]

local dxfont0_cz = dxCreateFont("cz.ttf", 19)
local screenW, screenH = guiGetScreenSize()
ww,hh = 1920, 1080
www,hhh = guiGetScreenSize()
w, h = (www/ww), (hhh/hh)

function isMouseIn(psx,psy,pssx,pssy,abx,aby)
local sx, sy = guiGetScreenSize()
if not isCursorShowing() then return end
cx,cy=getCursorPosition()
cx,cy=cx*sx,cy*sy
if cx >= psx and cx <= psx+pssx and cy >= psy and cy <= psy+pssy then
return true,cx,cy
else
return false
end
end

shift = false

function interakcja()
local veh = getPedOccupiedVehicle(localPlayer)
if getVehicleEngineState(veh) == false then silnik = "Odpal silnik" else silnik = "Zga? silnik" end
if isElementFrozen(veh) then reczny = "Spu?? r?czny" else reczny = "Zaci?gnij r?czny" end
if getVehicleOverrideLights(veh) == 2 then swiatla = "Zga? ?wiat?a" else swiatla = "Zapal ?wiat?a" end
if isVehicleLocked(veh) then zamek = "Otw?rz zamek" else zamek = "Zamknij zamek" end
dxDrawImage(screenW * 0.3635, screenH * 0.1519, screenW * 0.2734, screenH * 0.6963, ":sr-i...