Witam mam problem, nie dzia?a mi funkcja pokaz wie kto? co jest przyczyn? ?
gdy klikne przycisk event serwerowy dzia?a normalnie ( tworzy pojazd ) a marker (zaladunek) si? nie pojazuje. Z g?ry dzi?ki.
[lua]
local marker=createMarker(-2544.27661, -34.97003, 15.46506, "cylinder", 2, 255,255,255,20)
local sx,sy=guiGetScreenSize()
local w, h = (sx/1280),(sy/720)
local scalaczcionki = (w+h)*0.5
local sx, sy = guiGetScreenSize()
local screenW, screenH = guiGetScreenSize()
local Player = getLocalPlayer()
local pojazd = getPedOccupiedVehicle(Player)
function isMouseIn(psx,psy,pssx,pssy,abx,aby)
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
function gui()
dxDrawImage(722, 363, 476, 354, ":nrpg_interface/img/white123.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
dxDrawImage(738, 421, 225, 152, ":bb/theme.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
dxDrawImage(733, 411, 235, 172, ":nrpg_interface/img/white123.png", 0, 0, 0, tocolor(3, 3, 3, 255), false)
dxDrawImage(722, 363, 476, 354, ":nrpg_interface/img/white123.png", 0, 0, 0, tocolor(18, 17, 17, 255), false)
dxDrawImage(1165, 378, 18, 17, ":bb/close.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
... |