-
Próbálkoztam egy olyan Ped készítésén amire ha jobb klikkel rákattintok akkor elõjön egy kis ablak, de nem igazán akar ez összejönni:/
Itt a Kód:
(Kliens oldali)
myPed = createPed(0, 1969.7, -1458, 13.3)
function onPedClick(button, state, absX, absY, wx, wy, wz, element, clickedelement)
if button == \"right\" and state == \"down\" and clickedelement then
local x, y, z = getElementPosition(localPlayer)
if (element == myPed) then
if getDistanceBetweenPoints3D(x, y, z, wx, wy, wz)<=3 then
guiSetVisible(myGUIWindow, true)
end
end
end
end
outputChatBox(\"Siker\")
addEventHandler(\"onClientClick\", root, onPedClick)
A válaszokat elõre is köszönöm
-
myPed = createPed(0, 1969.7, -1458, 13.3)
function onPedClick(button, state, absX, absY, wx, wy, wz, element, clickedelement)
if button == \"right\" and state == \"down\" and clickedelement then
local x, y, z = getElementPosition(localPlayer)
if (clickedelement == myPed) then
if getDistanceBetweenPoints3D(x, y, z, wx, wy, wz)<=3 then
guiSetVisible(myGUIWindow, true)
outputChatBox(\"Siker\")
end
end
end
end
addEventHandler(\"onClientClick\", root, onPedClick)
-
myPed = createPed(0, 1969.7, -1458, 13.3)
function onPedClick(button, state, absX, absY, wx, wy, wz, clickedelement)
if button == \"right\" and state == \"down\" and clickedelement then
local x, y, z = getElementPosition(localPlayer)
if (clickedelement == myPed) then
if getDistanceBetweenPoints3D(x, y, z, wx, wy, wz)<=3 then
guiSetVisible(myGUIWindow, true)
outputChatBox(\"Siker\")
end
end
end
end
addEventHandler(\"onClientClick\", root, onPedClick)
-
Még mindig nem jó :/
-
Kliens oldalba, nem szerveroldalba.
-
Kliens oldalba írtam de nemjo mert resource elinditasakor rögtön hozzá be a guiablakot és nem kattintasra beraktam setvisible t úgy inditaskor ugye nem hozzá be gui ablakot de ha rakattolok pedre akkorse hozzá be
-
myPed = createPed(0, 1969.7, -1458, 13.3)
function onPedClick(button, state, absX, absY, wx, wy, wz, clickedelement)
if button == \"right\" and state == \"down\" and clickedelement then
local x, y, z = getElementPosition(localPlayer)
if (clickedelement == myPed) then
if getDistanceBetweenPoints3D(x, y, z, wx, wy, wz)<=3 then
guiSetVisible(myGUIWindow, true)
outputChatBox(\"Siker\")
end
end
end
end
addEventHandler(\"onClientClick\", root, onPedClick)
function pedClickShow()
guiSetVisible(myGUIWindow, false)
end
addEventHandler(\"onClientResourceStart\", getResourceRootElement(getThisResource()), pedClickShow)
-
Köszönöm mûködik! ZÁROM
-
Próbálkoztam egy olyan Ped készítésén amire ha jobb klikkel rákattintok akkor elõjön egy kis ablak, de nem igazán akar ez összejönni:/
Itt a Kód:
(Kliens oldali)
myPed = createPed(0, 1969.7, -1458, 13.3)
function onPedClick(button, state, absX, absY, wx, wy, wz, element, clickedelement)
if button == \"right\" and state == \"down\" and clickedelement then
local x, y, z = getElementPosition(localPlayer)
if (element == myPed) then
if getDistanceBetweenPoints3D(x, y, z, wx, wy, wz)<=3 then
guiSetVisible(myGUIWindow, true)
end
end
end
end
outputChatBox(\"Siker\")
addEventHandler(\"onClientClick\", root, onPedClick)
A válaszokat elõre is köszönöm
-
myPed = createPed(0, 1969.7, -1458, 13.3)
function onPedClick(button, state, absX, absY, wx, wy, wz, element, clickedelement)
if button == \"right\" and state == \"down\" and clickedelement then
local x, y, z = getElementPosition(localPlayer)
if (clickedelement == myPed) then
if getDistanceBetweenPoints3D(x, y, z, wx, wy, wz)<=3 then
guiSetVisible(myGUIWindow, true)
outputChatBox(\"Siker\")
end
end
end
end
addEventHandler(\"onClientClick\", root, onPedClick)
-
myPed = createPed(0, 1969.7, -1458, 13.3)
function onPedClick(button, state, absX, absY, wx, wy, wz, clickedelement)
if button == \"right\" and state == \"down\" and clickedelement then
local x, y, z = getElementPosition(localPlayer)
if (clickedelement == myPed) then
if getDistanceBetweenPoints3D(x, y, z, wx, wy, wz)<=3 then
guiSetVisible(myGUIWindow, true)
outputChatBox(\"Siker\")
end
end
end
end
addEventHandler(\"onClientClick\", root, onPedClick)
-
Még mindig nem jó :/
-
Kliens oldalba, nem szerveroldalba.
-
Kliens oldalba írtam de nemjo mert resource elinditasakor rögtön hozzá be a guiablakot és nem kattintasra beraktam setvisible t úgy inditaskor ugye nem hozzá be gui ablakot de ha rakattolok pedre akkorse hozzá be
-
myPed = createPed(0, 1969.7, -1458, 13.3)
function onPedClick(button, state, absX, absY, wx, wy, wz, clickedelement)
if button == \"right\" and state == \"down\" and clickedelement then
local x, y, z = getElementPosition(localPlayer)
if (clickedelement == myPed) then
if getDistanceBetweenPoints3D(x, y, z, wx, wy, wz)<=3 then
guiSetVisible(myGUIWindow, true)
outputChatBox(\"Siker\")
end
end
end
end
addEventHandler(\"onClientClick\", root, onPedClick)
function pedClickShow()
guiSetVisible(myGUIWindow, false)
end
addEventHandler(\"onClientResourceStart\", getResourceRootElement(getThisResource()), pedClickShow)
-
Köszönöm mûködik! ZÁROM