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: chowanie
1. Chowanie pojazdów przecho pys.
Witam, raczej g?upi problem ale poprostu nie wiem jak stworzy? marker do schowania pojazdu. W kodzie nie mog? znale?? miejsca kord?w markera. z g?ry dzi?ki. Je?li mo?na to prosi?bym o do?? jasne wyja?nienie.

s_parking https://pastebin.com/BuER39A0

c_parking https://pastebin.com/ngzJGWns


Za pomoc :piwo:
2. Otwieranie gui na przycisk i chowanie huda
Cze??. Mam kolejne dwa problemy. Pierwszy: jak otworzy? gui na przycisk? Event "onClientRender" dzia?a, ale kiedy chce wy??czy? wywala mi b??d, ?e Event "onClientRender" jest ju? w??czony. Drugi: da si? jako? wy??czy? hud? Jakie? pomys?y? :)
[lua]-- GUI
function gui()
dxDrawImage(0/scale, 0/scale, 1280/scale, 720/scale, "i/tlo.png")
dxDrawRectangle(0/scale, -50/scale, 1500/scale, 100/scale, tocolor(80, 80, 80, 240), false)
dxDrawRectangle(-10/scale, 50/scale, 1550/scale, 3/scale, tocolor(20, 20, 20, 190), false)
--
if isMouseInPosition(150/scale, 110/scale, 75/scale, 75/scale) then
dxDrawImage(150/scale, 110/scale, 80/scale, 80/scale, "i/gracz.png")
else
dxDrawImage(150/scale, 110/scale, 75/scale, 75/scale, "i/gracz.png")
end
--
if isMouseInPosition(375/scale, 110/scale, 80/scale, 80/scale) then
dxDrawImage(375/scale, 110/scale, 90/scale, 90/scale, "i/auto.png")
else
dxDrawImage(375/scale, 110/scale, 80/scale, 80/scale, "i/auto.png")
end
--
if isMouseInPosition(600/scale, 110/scale, 80/scale, 80/scale) then
dxDrawImage(600/scale, 110/scale, 90/scale, 90/scale, "i/kary.png")
else
dxDrawImage(600/scale, 110/scale, 80/scale, 80/scale, "i/kary.png")
end
--
if isMouseInPosition(810/scale, 110/scale, 75/scale, 75/scale) then
dxDrawImage(810/scale, 110/scale, 80/scale, 80/scale, "i/info.png")
else
dxDrawImage(810/scale, 110/sca...
3. Wyciąganie i chowanie
Witam. Ot?? przerobi?em skrypt IgorPL222 pod ACL ale wyst?pi? ma?y problem. Ot?? gdy chc? wyci?gn?? nosze to jednocze?nie je chowam. Za pomoc R* oraz :piwo:

[lua]
--[[
Autor: IgorPL222
Nie zezwalam na usuwanie tej notatki :)
--]]

local objectnosze = {}
local nosze = {}
local mrk = {}
local cols = {}
local timer = {}
resourceRoot = getResourceRootElement(getThisResource())

function dnosze(plr)
local accName = getAccountName ( getPlayerAccount ( plr ) )
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then
x,y,z = getElementPosition(plr)
x2,y2,z2 = getElementRotation(plr)
local veh = getPedOccupiedVehicle(plr)
if not veh then return end
mrk[veh] = createMarker(0, 0, 0, "cylinder", 2, 255, 0, 0, 50)
attachElements(mrk[veh], veh, 0, -4, -1)
objectnosze[veh] = createObject(1997, 0, 0, 0, 0, 0, 0)
setElementCollisionsEnabled(objectnosze[veh], false)
attachElements(objectnosze[veh], veh, 0, -1, -0.5)
outputChatBox("Dodano nosze do karetki!", plr, 255, 255, 255)
end
end
addCommandHandler("dnosze", dnosze)

function onMarker(plr)
local accName = getAccountName ( getPlayerAccount ( plr ) )
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "PR" ) ) then
outputChatBox("Aby wzi???/schowa? nosze wpisz: /wez-nosze", plr, 255, 255, 255)
setElementData(plr, "able:to:nosze", true)
end
end
addEventHandler("...
4. Jednoczesne chowanie i wyciąganie
Witam mam problem, ot?? gdy wpisuj? komend? na wyci?gni?cie noszy jednocze?nie si? chowaj?. Za pomoc R* i :piwo:

KOD
[lua]
--[[
Autor: IgorPL222
Nie zezwalam na usuwanie tej notatki :)
--]]

local objectnosze = {}
local nosze = {}
local mrk = {}
local cols = {}
local timer = {}
resourceRoot = getResourceRootElement(getThisResource())

function dnosze(plr)
local accName = getAccountName ( getPlayerAccount ( plr ) )
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then
x,y,z = getElementPosition(plr)
x2,y2,z2 = getElementRotation(plr)
local veh = getPedOccupiedVehicle(plr)
if not veh then return end
mrk[veh] = createMarker(0, 0, 0, "cylinder", 2, 255, 0, 0, 50)
attachElements(mrk[veh], veh, 0, -4, -1)
objectnosze[veh] = createObject(1997, 0, 0, 0, 0, 0, 0)
setElementCollisionsEnabled(objectnosze[veh], false)
attachElements(objectnosze[veh], veh, 0, -1, -0.5)
outputChatBox("Dodano nosze do karetki!", plr, 255, 255, 255)
end
end
addCommandHandler("dnosze", dnosze)

function onMarker(plr)
local accName = getAccountName ( getPlayerAccount ( plr ) )
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "PR" ) ) then
outputChatBox("Aby wzi???/schowa? nosze wpisz: /wez-nosze", plr, 255, 255, 255)
setElementData(plr, "able:to:nosze", true)
end
end
addEventHandler("onMarkerHit", resourceRoot, onMar...
5. chowanie custom hudu
Jak schowac custom hud podczas logowania? Jest jakis export na to ?
6. Aparat a chowanie elementów
Hej. Czego musz? u?y?, aby podczas robienia zdj?cia aparatem nie by?o hudu (napisa?em nowy) oraz czatu?