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: pasazer
1. blokada wejscia jako pasazer
Witam, nie moge dobrac funkcji do zablokowania wejscia pasazera do pojazu, czy mogli byscie mnie nakierowac jakiej funkcji uzyc?
2. pasazer widzi interakcje
[lua]
local dx = exports.ad_dx;
local font = dx:getFont("rbt-b", 10);
local font2 = dx:getFont("rbt-r", 4);
local font3 = dx:getFont("rbt-r", 5);

local sw,sh = guiGetScreenSize();
local baseX = 1920;
local zoom = 1;
local minzoom = 2;
if sw < baseX then
zoom = math.min(minzoom, baseX/sw);
end;

local selected = 1;
local tick = getTickCount();
local interaction = {};
local type_i = "join"

local a1,a2,a3 = 0,0,0;

local textures = { -- Teksturki
"img/I_brutto.png",
"img/I_engine.png",
"img/I_handbrake.png",
"img/I_getout.png",
"img/I_carlock.png",
"img/bagaznik.png",
"img/maska.png",
"img/I_leftbutton.png",
"img/I_rightbutton.png",
"img/I_spacebutton.png",

};

local tbl = {
[1] = "light",
[2] = "engine",
[3] = "handbrake",
[4] = "cancel",
[5] = "leave",
[6] = "lock",
[7] = "bagaznik",
[8] = "maska",

};

local img = {} -- Wszystkie tekstury
for i,v in pairs(textures) do
img[i] = dxCreateTexture(v, "argb", false, "clamp")
end

function isEventHandlerAdded( sEventName, pElementAttachedTo, func )
local aAttachedFunctions = getEventHandlers( sEventName, pElementAttachedTo )
if #aAttachedFunctions > 0 then
for i, v in ipairs( aAttache...