Resulcan
-
Posts
72 -
Joined
-
Last visited
Posts posted by Resulcan
-
-
Spoiler
I don't understand the error, what's the problem?
------Disk Seçimi Bölümü---------------local effect3dd = DGS:dgsCreateEffect3D(25) --Create the 3D effect pluginlocal spp = DGS:dgsCreateScrollPane(5,300,300,170,false) --Create a scroll panelocal imgg = DGS:dgsCreateImage(0,0,1,1,_,true,spp,tocolor(220,220,220,180)) --Create an imageDGS:dgsEffect3DApplyToScrollPane(effect3dd,spp)DGS:dgsSetVisible(spp, false)DiskSec = DGS:dgsCreateWindow(5, 300, 300, 300, "Disk Seçimi", false,spp)GrildLs = DGS:dgsCreateGridList(5, 5, 290, 240, false, DiskSec)DGS:dgsGridListAddColumn(GrildLs, "Tekerlekler", 0.9)for i,v in pairs(WhellTable) dolocal row = DGS:dgsGridListAddRow(GrildLs)DGS:dgsGridListSetItemText(GrildLs, row, 1, "("..i..") "..v[1], false, false)DGS:dgsGridListSetItemData(GrildLs, row, 1, v[2])endwheelsKapat = DGS:dgsCreateButton(5, 270, 290, 25, "Kapat", false, GrildLs)local function nextWheels()local vehicle = getPedOccupiedVehicle(localPlayer)if DGS:dgsGridListGetSelectedItem(wheels.wheel.list) == -1 thenDGS:dgsGridListSetSelectedItem(wheels.wheel.list, 0, 1)endif DGS:dgsGetVisible(wheels.wheel.window) thenif wheels.selected < WhellTable - 1 thenwheels.selected = wheels.selected + 1elsewheels.selected = 0endDGS:dgsGridListSetVerticalScrollPosition(wheels.wheel.list, 100/(WhellTable-1)*wheels.selected)DGS:dgsGridListSetSelectedItem(wheels.wheel.list, wheels.selected, 1)setElementData(vehicle, "vehicle:wheels", WhellTable[wheels.selected+1][2])endendlocal function prevWheels()local vehicle = getPedOccupiedVehicle(localPlayer)if DGS:dgsGridListGetSelectedItem(wheels.wheel.list) == -1 thenDGS:dgsGridListSetSelectedItem(wheels.wheel.list, 0, 1)endif DGS:dgsGetVisible(wheels.wheel.window) thenif wheels.selected > 0 thenwheels.selected = wheels.selected - 1elsewheels.selected = WhellTable - 1endDGS:dgsGridListSetSelectedItem(wheels.wheel.list, wheels.selected, 1)DGS:dgsGridListSetVerticalScrollPosition(wheels.wheel.list, 100/(WhellTable-1)*wheels.selected)setElementData(vehicle, "vehicle:wheels", WhellTable[wheels.selected+1][2])endend
-
I have a question for you, but do we have the opportunity to build a base underwater?
-
Friends Where I Went Wrong Or Didn't Add Which Command But I Need Your Help
I Have Mysq Login Panel But I Know How To Fix The Login And Registration Panels When I Login.
After I Press the Panel Login Panel Registration Button, I Want to Accept the Registration PanelGUIEditor = {
memo = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
local screenW, screenH = guiGetScreenSize()
Wnd = guiCreateWindow((screenW - 340) / 2, (screenH - 363) / 2, 340, 363, "Kayıt Olma", false)
guiWindowSetSizable(Wnd, false)addEventHandler("onClientResourceStart", resourceRoot,
function()
local screenW, screenH = guiGetScreenSize()
Glogin = guiCreateWindow((screenW - 386) / 2, (screenH - 329) / 2, 386, 329, "login Panel", false)
guiWindowSetSizable(Glogin, false)https://i.hizliresim.com/hp8kn0.png
-
Turf f1 forbidden ?
how can I do it
-
On 10/1/2020 at 7:14 AM, Tekken said:
Player is happening ?
thank you :D
-
On 30/09/2020 at 19:37, Tekken said:
Try like this
addEventHandler("onClientPlayerDamage", localPlayer, function(attacker, weapon, bodypart) local veh = getPedOccupiedVehicle(source); --Check if player is in vehicle if veh and getElementModel(veh) == 409 then cancelEvent(); -- cancel if the player is in vehicle 409 end end);
player Is happening
-
On 29.09.2020 at 19:47, Tekken said:
Araç içindeyken oyuncuya verilen hasarı da iptal etmeniz gerekecek
Yes But How To Do ?
-
function checkVulnerability(theVehicle)
if isVehicleDamageProof(theVehicle) then
outputChatBox("Bu araç hasara karşı savunmasız değil", source)
else
outputChatBox("Bu araç hasara karşı savunmasız", source)
end
end
addEventHandler ( "onPlayerVehicleEnter", getRootElement(), checkVulnerability )
setVehicleDamageProof(handleVehicleDamage, true)function handleVehicleDamage(attacker, weapon, loss, x, y, z, tire)
if (weapon and getElementModel(source) == 409) then
-- A weapon was used and the vehicle model ID is that of the SWAT tank so cancel the damage.
cancelEvent()
end
end
addEventHandler("onClientVehicleDamage", root, handleVehicleDamage)function checkVulnerability(theVehicle)
if isVehicleDamageProof(theVehicle) then
outputChatBox("This vehicle is not vulnerable to damage", source)
else
outputChatBox("This vehicle is vulnerable to damage", source)
end
end
addEventHandler ( "onPlayerVehicleEnter", getRootElement(), checkVulnerability )function stopMinigunDamage ( attacker, weapon, bodypart )
if (weapon and getElementModel(source) == 409) then
cancelEvent() --cancel the event
end
end
addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), stopMinigunDamage )Player Death When Shooting a Player in a Car
-
On 9/2/2020 at 7:04 PM, Zango said:
What doesn't work?
Are you getting an error? Use /debugscript 3
not processing
-
local wheelsMarker = createMarker(-1167.3,32.4,13,"cylinder",3.5,253,71,62,100) oknoshin = guiCreateWindow(400, 200, 270, 520, "Tekerlek ayarı", false) guiWindowSetSizable(oknoshin, false) spisokD = guiCreateGridList(15, 25, 240, 300, false, oknoshin) razmer = guiCreateScrollBar(15, 350, 240, 20, true, false, oknoshin) razvall = guiCreateScrollBar(15, 445, 240, 20, true, false, oknoshin) shirina = guiCreateScrollBar(15, 400, 240, 20, true, false, oknoshin) guiCreateLabel(85, 335, 87, 15, "Tekerlek boyutu ", false, oknoshin) guiCreateLabel(85, 430, 87, 15, "Kamber ", false, oknoshin) guiCreateLabel(82, 385, 93, 15, "Tekerlek genişliği ", false, oknoshin) okay = guiCreateButton(15, 475, 100, 30, "Yüklemek", false, oknoshin) closeSh = guiCreateButton(155, 475, 100, 30, "kapat", false, oknoshin) guiGridListAddColumn(spisokD, "Disk",0.9) local row = guiGridListAddRow ( spisokD ) guiGridListSetItemText ( spisokD, row, 1, "1", false, false ) local row1 = guiGridListAddRow ( spisokD ) guiGridListSetItemText ( spisokD, row1, 1, "2", false, false ) local row2 = guiGridListAddRow ( spisokD ) guiGridListSetItemText ( spisokD, row2, 1, "3", false, false ) local row3 = guiGridListAddRow ( spisokD ) guiGridListSetItemText ( spisokD, row3, 1, "4", false, false ) local row4 = guiGridListAddRow ( spisokD ) guiGridListSetItemText ( spisokD, row4, 1, "5", false, false ) local row5 = guiGridListAddRow ( spisokD ) guiGridListSetItemText ( spisokD, row5, 1, "6", false, false ) local row6 = guiGridListAddRow ( spisokD ) guiGridListSetItemText ( spisokD, row6, 1, "7", false, false ) local row7 = guiGridListAddRow ( spisokD ) guiGridListSetItemText ( spisokD, row7, 1, "8", false, false ) local row8 = guiGridListAddRow ( spisokD ) guiGridListSetItemText ( spisokD, row8, 1, "9", false, false ) local row9 = guiGridListAddRow ( spisokD ) guiGridListSetItemText ( spisokD, row9, 1, "10", false, false ) local row10 = guiGridListAddRow ( spisokD ) guiGridListSetItemText ( spisokD, row10, 1, "11", false, false ) local row11 = guiGridListAddRow ( spisokD ) guiGridListSetItemText ( spisokD, row11, 1, "12", false, false ) local row12 = guiGridListAddRow ( spisokD ) guiGridListSetItemText ( spisokD, row12, 1, "13", false, false ) local row13 = guiGridListAddRow ( spisokD ) guiGridListSetItemText ( spisokD, row13, 1, "14", false, false ) local row14 = guiGridListAddRow ( spisokD ) guiGridListSetItemText ( spisokD, row14, 1, "15", false, false ) local row15 = guiGridListAddRow ( spisokD ) guiGridListSetItemText ( spisokD, row15, 1, "16", false, false ) guiSetVisible (oknoshin, false) addEventHandler("onClientMarkerHit", wheelsMarker, function() if guiGetVisible (oknoshin ) then guiSetVisible ( oknoshin, false ) showCursor(false) else guiSetVisible ( oknoshin, true ) showCursor(true) end end ) local function setWheelsData(dataName, dataValue) if not tonumber(dataValue) then outputChatBox("Yanlış değer") end localPlayer.vehicle:setData(dataName, tonumber(dataValue)) end addEventHandler ("onClientGUIClick", getRootElement(), function () if source == okay then local diskNumber = guiGridListGetItemText(spisokD, guiGridListGetSelectedItem(spisokD)) setWheelsData("WheelsF", diskNumber, w1 ) setWheelsData("WheelsR", diskNumber, w2 ) local razvalS = guiScrollBarGetScrollPosition(razvall) setWheelsData("WheelsAngleF", razvalS/100) setWheelsData("WheelsAngleR", razvalS/100) local razmerS = guiScrollBarGetScrollPosition(razmer) setWheelsData("WheelsSize", (razmerS/100)*3) local shirinaS = guiScrollBarGetScrollPosition(shirina) setWheelsData("WheelsWidthF", (shirinaS/100)*2) setWheelsData("WheelsWidthR", (shirinaS/100)*2) end if source == closeSh then guiSetVisible (oknoshin, false) showCursor (false) end end )
Doesn't work. What's wrong?
-
-
7 hours ago, IIYAMA said:
Yes, you forgot to explain that... But it wasn't that hard to figure that one out.
I answered your question for the most part.
You also need to enable propagation:
addEventHandler('onDgsMouseClick', getResourceRootElement( getThisResource( ) ), onClickSuicide, true)
Not sure why you did change that setting without knowing what it is for.
addEventHandler('onDgsMouseClick', getResourceRootElement( getThisResource( ) ), onClickSuicide, true)
And even better, attach the event to your button element:
addEventHandler('onDgsMouseClick', Olme, onClickSuicide)
local Karakte = dgs:dgsCreateWindow(255,250,210,310,"Karakter",false)playerList = dgs:dgsCreateGridList (255, 270, 205, 110,false ) ---------------------------------How can we adjust the colorlocal column = dgs:dgsGridListAddColumn( playerList, "Player", 0.5 )for id, player in ipairs(getElementsByType("player")) dolocal row = dgs:dgsGridListAddRow ( playerList )dgs:dgsGridListSetItemText ( playerList, row, column, getPlayerName ( player ) )end -
-
local dgs = exports.dgslocal sw,sh = guiGetScreenSize()local px,py = sw/1920,sh/1080local window = dgs:dgsCreateWindow(((sw -1420)/2)*px,((sh-450)/2)*py,290*px,370*py,'KAFES GAMİNG F1 PANEL',false)local Olme = dgs:dgsCreateButton(10,2,195,35,'Dead',false,window)--------------------Ölmefunction onClickSuicide()killPed(localPlayer)endaddEventHandler('onDgsMouseClick', getResourceRootElement( getThisResource( ) ), onClickSuicide, false)The Person Is Not Dying Help?
-
59 minutes ago, N3xT said:
Please use the code tool next time to share your codes, so it would be easier for others to read and understand your codes. I edited it for you this time.
Also, please explain your issue or what you're trying to achieve properly and on the topic, not hidden within your codes because it's really hard to notice.
For your request, you could use these:
onClientGUIClick guiSetVisible
local swic = guiCreateStaticImage( 980, 190, 35, 35, "files/switch_button.png", false ) ----------------------------------Clicking the button
- function()----------------------------------------Opening the Next Panel by clicking the button
- dxDrawRectangle((screenW - 666) / 2, (screenH - 450) / 2, 666, 450, tocolor(0, 0, 0, 203), false)----------------------------------I want the panel to open
-
local screenW, screenH = guiGetScreenSize() addEventHandler("onClientRender", root, function() dxDrawRectangle((screenW - 666) / 2, (screenH - 450) / 2, 666, 450, tocolor(0, 0, 0, 203), false) dxDrawRectangle(387, 190, 666, 35, tocolor(135, 135, 135, 218), false) dxDrawText("Support Chat", 387, 190, 1053, 225, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawRectangle(393, 229, 473, 441, tocolor(14, 14, 14, 255), false) dxDrawRectangle(873, 229, 170, 441, tocolor(14, 14, 14, 255), false) dxDrawLine(873, 259, 1043, 259, tocolor(255, 255, 255, 255), 1, false) dxDrawText("Articles That Might Help Yours", 872, 229, 1043, 259, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(397, 634, 397, 26, tocolor(255, 255, 255, 255), false) dxDrawRectangle(804, 629, 59, 36, tocolor(8, 110, 3, 255), false) dxDrawText("Sent", 803, 628, 863, 665, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(942, 190, 111, 35, tocolor(32, 32, 32, 203), false) end ) function()----------------------------------------Opening the Next Panel by clicking the button dxDrawRectangle((screenW - 666) / 2, (screenH - 450) / 2, 666, 450, tocolor(0, 0, 0, 203), false) dxDrawRectangle(387, 190, 666, 35, tocolor(135, 135, 135, 218), false) dxDrawText("Support Chat(No English)", 387, 190, 1053, 225, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawRectangle(393, 229, 473, 441, tocolor(14, 14, 14, 255), false) dxDrawRectangle(873, 229, 170, 441, tocolor(14, 14, 14, 255), false) dxDrawLine(873, 259, 1043, 259, tocolor(255, 255, 255, 255), 1, false) dxDrawText("Articles That Might Help Yours", 872, 229, 1043, 259, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(397, 634, 397, 26, tocolor(255, 255, 255, 255), false) dxDrawRectangle(804, 629, 59, 36, tocolor(8, 110, 3, 255), false) dxDrawText("Sent", 803, 628, 863, 665, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(942, 190, 111, 35, tocolor(32, 32, 32, 203), false) end function showClientImage() local Kapa = guiCreateStaticImage( 1015, 190, 35, 35, "files/close_button.png", false ) local help = guiCreateStaticImage( 945, 190, 35, 35, "files/help_button.png", false ) local swic = guiCreateStaticImage( 980, 190, 35, 35, "files/switch_button.png", false )----------------------------------------Opening the Next Panel by clicking the button end addEventHandler( "onClientResourceStart", getResourceRootElement( getThisResource() ), showClientImage )
-
Friends First of all, I made such a Panel
In this panel, I want to drive the person's car and increase his speed
Server How To Increase The Speed Of The Car When The Person's Button Is Clicked
Quickly Boost Your Own Car With Vip Buyers
---------------------------------Client.lua
local screenW, screenH = guiGetScreenSize()
Wnd = guiCreateWindow((screenW - 389) / 2, (screenH - 310) / 2, 389, 310, "Araba Motor Güçlendirme", false)
guiWindowSetSizable(Wnd, false)
guiSetVisible(Wnd, false)motorB = guiCreateLabel(29, 21, 61, 15, "1.lvl Motor", false, Wnd)
guiSetFont(motorB, "default-bold-small")
motori = guiCreateLabel(29, 42, 61, 15, "250 KM/h", false, Wnd)
guiSetFont(motori, "default-bold-small")VipM = guiCreateButton(136, 215, 100, 31, "Satın Al", false, Wnd)
Kapat = guiCreateButton(136, 267, 100, 31, "Kapat", false, Wnd)---------------------------------Sever.lua
local predefinedHandling = {
[411] = {
["engineAcceleration"] = 200,
["dragCoeff"] = 0,
["maxVelocity"] = 200,
["tractionMultiplier"] = 1.5,
["tractionLoss"] = 1.1,
},
for i,v in pairs (predefinedHandling) do
if i then
for handling, value in pairs (v) do
if not setModelHandling (i, handling, value) then
outputDebugString ("* Önceden Tanımlanmış Kullanım '"..tostring(handling).."' Araç Modeli İçin '"..tostring(i).."' Olarak Ayarlanamadı '"..tostring(value).."'")
end
end
end
endfor _,v in ipairs (getElementsByType("vehicle")) do
if v and predefinedHandling[getElementModel(v)] then
for k,vl in pairs (predefinedHandling[getElementModel(v)]) do
setVehicleHandling (v, k, vl)
end
end
endfunction resetHandling()
for model in pairs (predefinedHandling) do
if model then
for k in pairs(getOriginalHandling(model)) do
setModelHandling(model, k, nil)
end
end
endfor _,v in ipairs (getElementsByType("vehicle")) do
if v then
local model = getElementModel(v)
if predefinedHandling[model] then
for k,h in pairs(getOriginalHandling(model)) do
setVehicleHandling(v, k, h)
end
end
end
end
end
addEventHandler("onResourceStop", resourceRoot, resetHandling) -
guiCreateStaticImage >>>>How do I throw the button
Am I making a mistake somewhere
Merni = guiCreateStaticImage( 725, 395, 79, 30, "Button.png", false )
can = guiCreateStaticImage( 665, 550, 79, 30, "Button.png", false )
zirh = guiCreateStaticImage( 785, 550, 79, 30, "Button.png", false )
Yetenek = guiCreateStaticImage( 850, 550, 100, 100, "Rectangle.png", false )health How do I set server and client function
bullet How do I set server and client function
armor How do I set server and client function
abilityHow do I set server and client function
ss
EditMermi = guiCreateEdit(685, 322, 144, 44, "", false)
GRL = guiCreateGridList(487, 302, 157, 273, false)
guiGridListAddColumn(GRL, "Silah Listesi", 0.9)
guiGridListAddRow(GRL)
guiGridListSetItemText(GRL, 0, 1, "Pistol", false, false)addEventHandler("onClientRender", root,
function()
dxDrawRectangle(482, 271, 399, 318, tocolor(40, 40, 40, 255), false)
dxDrawRectangle(482, 271, 399, 27, tocolor(0, 0, 0, 255), false)
dxDrawText("Server ADI | Market Panel", 482, 271, 876, 298, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false)
dxDrawLine(482, 298, 881, 298, tocolor(255, 255, 255, 255), 1, false)
dxDrawText("Mermi Sayısı", 700, 302, 815, 318, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false)
dxDrawText("Fiyat:", 700, 371, 815, 387, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false)
dxDrawText("Can Doldur", 646, 510, 761, 526, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false)
dxDrawText("₺5000", 646, 531, 761, 547, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false)
dxDrawText("Zırh Doldur", 766, 510, 881, 526, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false)
dxDrawText("₺2000", 766, 531, 881, 547, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false)
end
)function showClientImage()
Merni = guiCreateStaticImage( 725, 395, 79, 30, "Button.png", false )
can = guiCreateStaticImage( 665, 550, 79, 30, "Button.png", false )
zirh = guiCreateStaticImage( 785, 550, 79, 30, "Button.png", false )
Yetenek = guiCreateStaticImage( 850, 550, 100, 100, "Rectangle.png", false )
end
addEventHandler( "onClientResourceStart", getResourceRootElement( getThisResource() ), showClientImage )-- AYARLAR --
-
35 minutes ago, Patrick said:
Hi!
This isn't really simple for a beginner, but here is what you need.Steps
1) Load .xml file. (xmlLoadFile)
2) Create window. (guiCreateWindow)
3) Add window tabs. (guiCreateTabPanel)
4) Create a scrollPane inside "News" tab, because of the scrollbar. (guiCreateScrollPane)
5) Loop trough the loaded .xml file and create labels, inside the scrollPane. (guiCreateLabel)
- Get xml attributes. (xmlNodeGetAttributes)thks brom
-
I don't know how to do it. Can you help me? I want to make a panel like this.
Made with XML Link
<news>
<category name="news">
<entry id="P01asLLUbU0C4trm0L4E" date="2020/01/31" time="05:27:47" message="Added donator middleman system.
Check website for more info on how it works.
" author="TiGeR"></entry>ok i don't know how to do it
-
9 hours ago, N3xT said:
please, if you're not a proper english speaker just use your native forum to explain your issue properly
I meant not read
-
okunmadı yardım edilmedi
-
20 minutes ago, AfuSensi said:
Can you rephrase your question, i think the translator messed up.
I want to animate on Tex
-
help?
[Help] Turf
in Scripting
Posted
how can I make a turf please help