Cze??, mam problem ze schowkiem PSP gdy zabior? ga?nice to dostaje j?, ale gdy chce zabra? skokoschorn lub drabin? pokazuje si? tylko na chacie Kalinka zabra? drabin? ze schowka, ale nic w r?ce nie mam ani nie pokazuje si?, ?e zabra?em drabin?.
Witam, posiadam paczke PSSM - Polski Serwer Sluzb Mundurowych, problem polega na tym, iz w frakcjach sa pododawane dzwieki w skrypcie pssm-syrenydzwiekowe oraz schowek ktory znajduje sie w np. frakcja-osp w pojazdy.lua,
chodzi o to ze chociaz dodany jest Burrito [482] w skrypcie i na dzwiekowe syreny i na schowek, ani schowek ani syreny nie dzialaja.
KOD W KTORYM DODANY JEST POJAZD DO SCHOWKA:
Witam jak napisa? skrypt na schowek dla psp kt?ry ma np norzyce deske i lini? z tylu kt?ra ci?gnie w?? i ?eby nie dawa?a ca?emu serwerowi tego i ?eby by?o do?? czytelne
Oraz pe?en skrypt czyli server i client
Witam jak napisa? skrypt na schowek dla psp kt?ry ma np norzyce deske i lini? z tylu kt?ra ci?gnie w?? i ?eby nie dawa?a ca?emu serwerowi tego i ?eby by?o do?? czytelne
Oraz pe?en skrypt czyli server i client
2. Jak napisa? skrypt w kt?rym komemd? wypadek losowo pojazdy gdzie? s? zderzone maj? boty ko?o aut kt?re trzeba zabra? na nosze np i plamy oleju
local function isMouseInPosition(x, y, width, height)
if not isCursorShowing() then return false end
local cursor = {getCursorPosition()}
local cx, cy = (cursor[1]*screenSize.x), (cursor[2]*screenSize.y)
if (cx >= x and cx <= x + width) and (cy >= y and cy <= y + height) then return true else return false end
end
function isEventHandlerAdded(sEventName, pElementAttachedTo, func)
if type(sEventName) == 'string' and isElement(pElementAttachedTo) and type(func) == 'function' then
local aAttachedFunctions = getEventHandlers(sEventName, pElementAttachedTo)
if type(aAttachedFunctions) == 'table' and #aAttachedFunctions > 0 then for i, v in ipairs(aAttachedFunctions) do if v == func then return true end end end
end return false
end
local function scaleElement(sx, sy)
return (screenSize.x - sx)/2, (screenSize.y - sy)/2
end
local icon_x, icon_y = scaleElement(128, 128)
local function drawGUI()
local up = interpolateBetween(100, 0, 0, 0, 0, 0, (getTickCount()-ticks.animTick)/2000, "OutBack")
if anim == "fadein" then
progress = (getTickCount()-ticks.alphaTick)/1000
alpha = interpolateBetween(alpha, 0, 0, 255, 0, 0, progress, "Linear...
local function isMouseInPosition(x, y, width, height)
if not isCursorShowing() then return false end
local cursor = {getCursorPosition()}
local cx, cy = (cursor[1]*screenSize.x), (cursor[2]*screenSize.y)
if (cx >= x and cx <= x + width) and (cy >= y and cy <= y + height) then return true else return false end
end
function isEventHandlerAdded(sEventName, pElementAttachedTo, func)
if type(sEventName) == 'string' and isElement(pElementAttachedTo) and type(func) == 'function' then
local aAttachedFunctions = getEventHandlers(sEventName, pElementAttachedTo)
if type(aAttachedFunctions) == 'table' and #aAttachedFunctions > 0 then for i, v in ipairs(aAttachedFunctions) do if v == func then return true end end end
end return false
end
local function scaleElement(sx, sy)
return (screenSize.x - sx)/2, (screenSize.y - sy)/2
end
local icon_x, icon_y = scaleElement(128, 128)
local function drawGUI()
local up = interpolateBetween(100, 0, 0, 0, 0, 0, (getTickCount()-ticks.animTick)/2000, "OutBack")
if anim == "fadein" then
progress = (getTickCount()-ticks.alphaTick)/1000
alpha = interpolateBetween(alpha, 0, 0, 255, 0, 0, progress, "Linear")
if alpha == 255...
Witam ! Mam taki oto skrypt ale mam w nim dwa b??dy. Jeden to panel wy?wietlaj?cy si? ka?demu graczowi a dwa to nie usuwaj?ce si? wszystkie barierki i pacho?ki. Kto? co?? Daje i
CLIENT
[lua]
-- [ Autor skryptu venzikk ]
-- [ Edytowany przez Maszek i adizygzak]
GUIEditor = {
button = {},
window = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(47, 199, 198, 139, "Schowek", false)
guiWindowSetSizable(GUIEditor.window[1], false)
)
addEventHandler("onClientResourceStart",resourceRoot,
function()
guiSetVisible(GUIEditor.window[1],false)
end
)
bindKey("l","down",function()
local veh = getPedOccupiedVehicle(localPlayer)
if (getElementModel(veh) == 407) then
local x,y,z = getElementPosition(localPlayer)
local marker...