xuaNN

Members
  • Content Count

    10
  • Joined

  • Last visited

Community Reputation

0 Neutral

About xuaNN

  • Rank
    Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. deleted.

  2. local bar = DGS:dgsCreateImage(0.7 * fScreenX, 0 * fScreenY, 0.24 * fScreenX, 1 * fScreenY,_,false,_,tocolor(0,0,0,225)) local logobs = DGS:dgsCreateImage(0.3, 0.05, 0.35, 0.25,"images/bslogo.png",true,bar) setCameraMatrix(-1999.56580, -1546.32251, 84.63199,-1997.58289, -1543.28892, 84.62630, 0, 70 ) --login panel local tUsername = DGS:dgsCreateEdit(0.225, 0.3, 0.5, 0.03,"Username", true,bar) addEventHandler("onDgsMouseClick",tUsername, function () DGS:dgsSetText(tUsername,"") end ) local tPassword = DGS:dgsCreateEdit(0.225, 0.35, 0.5, 0.03,"Password",true,bar) addEventHandler("onDgsMouseClick",tPassword, function () DGS:dgsSetText(tPassword,"") end ) local bLogin = DGS:dgsCreateButton(0.225,0.40,0.20,0.027,"Giriş Yap",true,bar) local bRegister = DGS:dgsCreateButton(0.525,0.40,0.20,0.027,"Kayıt Ol",true,bar) there it is, bar is a image but it also serves as a window in the background.
  3. Hello guys, im going to write a login panel for my server. Nearly, i finished. but i have this problem. How can i fix it? function buttonClick() if source == rbRegister then local username = DGS:dgsGetText(rUsername) local password = DGS:dgsGetText(rPassword) local email = DGS:dgsGetText(rMail) triggerServerEvent("registerRequest",getLocalPlayer(),getLocalPlayer(),username,password,email) elseif source == bLogin then local username = DGS:dgsGetText(tUsername) local password = DGS:dgsGetText(tUsername) triggerServerEvent("loginRequest",getLocalPlayer(),getLocalPlayer(),username,password) end end addEventHandler("onDgsMouseClick",bar,buttonClick) error = Bad argument @ 'addEventHandler' [expected element at argument 2,got nil]
  4. Not worked, same problem. local me = localPlayer local gPed1 = createPed( 32, 1913.11328125, -1806.2041015625, 13.546875 ) setPedRotation( gPed1, 270 ) setElementDimension( gPed1, 0) setElementInterior( gPed1 , 0 ) setElementData( gPed1, "talk", 1, false ) setElementData( gPed1, "name", "Çavuş Alcibiade Sinnerman", false ) setElementFrozen(gPed1, true) local gPed2 = createPed( 1, 1913.4462890625, -1808.294921875, 13.546875 ) setPedRotation( gPed2, 270 ) setElementDimension( gPed2, 0) setElementInterior( gPed2 , 0 ) setElementData( gPed2, "talk", 1, false ) setElementData( gPed2, "name", "Çiftçi Brian Elcabor", false ) setElementFrozen(gPed2, true) local gPed3 = createPed( 2, 1913.7099609375, -1810.29296875, 13.546875 ) setPedRotation( gPed3, 270 ) setElementDimension( gPed3, 0) setElementInterior( gPed3 , 0 ) setElementData( gPed3, "talk", 1, false ) setElementData( gPed3, "name", "Hancı Armando Elcabor", false ) setElementFrozen(gPed3, true) local gPed4 = createPed( 2, 1914.083984375, -1812.4130859375, 13.546875 ) setPedRotation( gPed4, 270 ) setElementDimension( gPed4, 0) setElementInterior( gPed4 , 0 ) setElementData( gPed4, "talk", 1, false ) setElementData( gPed4, "name", "Tüccar Leonardo Gustav", false ) setElementFrozen(gPed4, true) local levelEksikMsg = { "Sana verebileceğim bir iş yok.", "İşler biraz kötü, sonra gelirsen belki." } local kabulEtMsg = { "Bana uyar.", "Güzel teklif.", "Ne zaman başlıyorum?", } local kabulEtmeMsg = { "İşim olmaz.", "Daha önemli işlerim var.", "Meşgulüm.", } function gorevGUI(me) alonca = getPlayerTeam(me) loncaseviye = getElementData(alonca,"birlikLevel") loncatipi = getElementData(alonca,"type") if (loncatipi) and (loncatipi == 0) or (loncatipi == 1) then if loncaseviye < 3 then triggerServerEvent("sendLocalText", getLocalPlayer(), getLocalPlayer(), "[English] Joffrey Yount diyor ki: " .. levelEksikMsg[math.random(#levelEksikMsg)], 255, 255, 255, 10, {}, true) outputChatBox("[!] #FFFFFFBu işi yapabilmek için loncanızın en az 3.seviye olması gerekmektedir.", 255, 0, 0, true) return else triggerServerEvent("sendLocalText", getLocalPlayer(), getLocalPlayer(), "[English] Joffrey Yount fısıldar: Hey, elimde bir iş var. Ne dersin, ha?", 255, 255, 255, 3, {}, true) gorevKabulGUI(me) return end else triggerServerEvent("sendLocalText", getLocalPlayer(), getLocalPlayer(), "[English] Joffrey Yount diyor ki: Seninle bir işim yok. Derhal toz ol buradan.", 255, 255, 255, 10, {}, true) return end end addEvent("gorevGUI", true) addEventHandler("gorevGUI", getRootElement(), gorevGUI) There is full code i wrote. i am getting problem with element data lines. And the getPlayerTeam line
  5. Hi guys, im going to make a guest peds script for my roleplay server. But i have some issues. function gorevGUI(thePlayer) local oyuncuLonca = getPlayerTeam(thePlayer) local loncaTip = getElementData(oyuncuLonca, "type") local loncaLevel = getElementData(oyuncuLonca, "birlik_level") if (loncaTip) and (loncaTip == 0) then if loncaLevel < 2 then triggerServerEvent("sendLocalText", getLocalPlayer(), getLocalPlayer(), "[English] Karşındaki diyor ki: " .. levelEksikMsg[math.random(#levelEksikMsg)], 255, 255, 255, 10, {}, true) outputChatBox("[!] #FFFFFFBu işi yapabilmek için loncanızın en az 2.seviye olması gerekmektedir.", 255, 0, 0, true) return else triggerServerEvent("sendLocalText", getLocalPlayer(), getLocalPlayer(), "[English] Karşındaki fısıldar: Hey, elimde bir görev var. Ne dersin, ha?", 255, 255, 255, 3, {}, true) gorevKabulGUI(thePlayer) return end else triggerServerEvent("sendLocalText", getLocalPlayer(), getLocalPlayer(), "[English] Karşındaki diyor ki: Seninle bir işim yok. Derhal toz ol buradan.", 255, 255, 255, 10, {}, true) return end end addEvent("gorevGUI", true) addEventHandler("gorevGUI", getRootElement(), gorevGUI) WARNINGS; Bad argument @ 'getPlayerTeam' [Expected Player at argument 1, got nil] Bad argument @ 'getElementData' [Expected Element at argument 1, got boolean] Bad argument @ 'getElementData' [Expected Element at argument 1, got boolean] how can i solve this problem?
  6. This worked for me after some edits. Thank you man.
  7. Hello everybody, I uploaded to my server a new sword animation, but i can't change original sword animations with my new ifp. how can i do it?
  8. I want automatically get the health value from the player, how can I do it? Okey okey okey, i understand the problem. Thank you.
  9. I wanna make a health checker. If player health under 15hp, The camera starts to shake. I actually did the coding. But i can't make the check function. There is code; local hp = getElementHealth( localPlayer ) function healthshake () if hp <= 15 then setCameraShakeLevel(255) else if hp > 15 then setCameraShakeLevel(0) end end end setTimer(healthshake,500,0)
  10. what do I need to do for a function to work continuously?
  11. Firstly, sorry for my bad english. I don't know it very well. Hello all, i wanna add a animation on fire with rifle. When the gun is fired, the animation will start. How can i do this? I wrote a few lines of code, but it didn't work. local ped = getLocalPlayer() local weaponid = getPedWeapon(ped) addEventHandler( "onWeaponFire", root, function reload () if weaponid == 33 then setPedAnimation(ped,"buddy","buddy_crouchreload") end end I understood the mistake I made. Topic deleted. Clientside: local ped = getLocalPlayer() -- Get Player local weaponid = getPlayerWeapon(ped) -- Get Players weapon. function reload () if weaponid == 33 then -- if player weapon is rifle setPedAnimation(ped,"buddy","buddy_crouchreload") -- Set ped animation end end addEventHandler("onClientPlayerWeaponFire",root,reload) -- if player fire with weapon get function reload It can work.