Witam serdecznie, pytanie tak jak w temacie.. Chc? zrobic drzwi (konkretnie ID 3089) zeby sie otwieraly dla kazdego po wejsciu w blip.. jak to zrobi? ktos by pomog??
Witam. Pytanie mam. Jakiej funkcji u?y? czy jak zrobi? tak ?e wciskam przycisc zrobiony w guieditorze i si? wy?wietla inne okno? Daje za odpowiedz:>
Z g?ry dzi?kuje
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...
Witam, od niedawna zaczolem sie bawic lua i chce zrobic prace kuriera.
Chce zrobic ze jak gracz podjedzie pod marker (?eby oddac paczke) to wysiada z pojazdu podchodzi do tego markera i w tym czasie ma miec animacje noszenia paczki (crry_prtial) ale jak zrobic zeby bylo widac paczke
function sprawdzStrefeTuningu(hitElement)
if getElementType(hitElement) == "player" then
local acc = getPlayerAccount(hitElement)
if acc then
local login = getAccountName(acc)
if isObjectInACLGroup ("user."..login, aclGetGroup ("Everyone")) then
local veh = getPedOccupiedVehicle(hitElement)
if not veh then
local elements = getElementsWithinColShape (strefa, "vehicle")
if #elements == 1 then
if not tuningTable[hitElement] then
local veh = elements[1]
local aktualnyTuning = getVehicleUpgrades(veh)
vehInCol = {}
vehInCol[veh] = hitElement
end
else
if #elements == 0 then
outputChatBox("W strefie tuningu nie ma pojazdu.", hitElement, 255, 255, 255, true)
else
outputChatBox("W strefie tuningu jest wi?cej ni? jeden pojazd.", hitElement, 255, 255, 255, true)
end
end
end
end
end
end
end
addEventHandler(...
Witam mam pytanko, wgralem mapke, wsadzilem gracza do jaila, ale on sobie wpisuje np. /lv /sf /nrg, jak zrobic zeby gracze podczas wiezienia nie mogli wpisywac komend