Jump to content

LukisLT

Members
  • Posts

    56
  • Joined

  • Last visited

Everything posted by LukisLT

  1. Ok's, i will try to do that, thanks for your reply!
  2. I don't know, i've never checked for it, i'm on www.vortexservers.com . this weird dl bug apeared yesterday.. for the first time
  3. Nope, we using the host for about 3 months already, and we haven't changed anything, just using our scripts... EDIT : i've been advised " restart should help " we did it like 10 times.. nothing.
  4. Hey guys, i'm not sure i'f i'm in the right section, but anyway, i got the following error when i try to join my server Error downloading requested files. HTTP response code said error. [ The requested URL returned error: 404 Not found ] [scoreboard/client.lua] and i get kick from server.. if i disable scoreboard, the any other script is on gives same error, just other name... of .lua script, so if here any solution to fix it witouth reinstalling the server in the host? or theres no way to fix it... ? EDIT : works only mapping GM... all other gamemodes bugged like this.. thx.
  5. Hey guys, i'm here with a question, about DM server bug, that creates me new objects in maps that is not even been used in the map, and some of the maps have blocked roads, just becouse of that object, and once i looked in the " debugscript 3 " i don't see any error about that thing... any suggestions what would that be? the bug apeared just an hour ago.. Thanks!
  6. Fixed, Thanks Solid for your help!
  7. Thanks, guis working fine.. just some extra error in lines : 88 and 123... and not loading my song from my file, once i try to press " play " it just says, song is offline, but there is no song loaded at all...
  8. Anyway to solve this problem?
  9. musicplayerGUI.window = guiCreateWindow(340, 195, 494, 578, "FNF// - Music Player 1.3", -- Line 21 guiSetFont(musicplayerGUI.label1, "default-bold-small") -- Line 37 But what does it have with my errors i get?
  10. Gui opened, but this time, not loading any of my componenets .. Thats include : labels, buttons, scrollbars img's.. etc. and showing error this time ERROR : lua:21: attemt to index global 'musicplayerGUI' (a nil value) EDIT : the bind key bugged too, opened, only once i started the script, but not closing with they bind key.
  11. Hey guys, i've got some strange problem into my script( old version of script ) i just made a new gui for it, and added some extra images... to make it look nicer, and more enjoyable. But, after i done that small change, the music player does not open at all, and shows me some error, that's it's not even in that line.. Client : local volume = 1 --Default Song Volume local guiShowing = false --Hide/Open local currentPlaying = nil --Coming with the next update. local state = nil --State Playing / Not Playing function stopGTAradio() setRadioChannel(0) cancelEvent() end addEventHandler("onClientPlayerRadioSwitch",getRootElement(),stopGTAradio) addEventHandler("onClientPlayerVehicleEnter",getRootElement(),stopGTAradio) ------------------------------------------------------------------------------- GUIEditor = { label = {}, scrollbar = {}, } musicplayerGUI = {}, musicplayer = {} musicplayerGUI.window = guiCreateWindow(340, 195, 494, 578, "FNF// - Music Player 1.3", false) guiWindowSetSizable(musicplayerGUI.window, false) musicplayer.logo1 = guiCreateStaticImage(10, 559, 475, 9, "Img/tab.png", false, musicplayerGUI.window) musicplayerGUI.grid = guiCreateGridList(128, 315, 350, 225, false, musicplayerGUI.window) guiGridListAddColumn(musicplayerGUI.grid, "Songs list", 0.9) for i = 1, 2 do guiGridListAddRow(musicplayerGUI.grid) end guiGridListSetItemText(musicplayerGUI.grid, 0, 1, "-", false, false) guiGridListSetItemText(musicplayerGUI.grid, 1, 1, "-", false, false) GUIEditor.scrollbar[1] = guiCreateScrollBar(328, 18, 18, 189, false, false, musicplayerGUI.grid) musicplayerGUI.button2 = guiCreateButton(21, 376, 97, 25, "Stop", false, musicplayerGUI.window) musicplayerGUI.button3 = guiCreateButton(20, 515, 97, 25, "Close", false, musicplayerGUI.window) musicplayerGUI.button1 = guiCreateButton(21, 325, 97, 25, "Play", false, musicplayerGUI.window) musicplayerGUI.logo2 = guiCreateStaticImage(262, 45, 212, 220, "Img/logo.png", false, musicplayerGUI.window) musicplayerGUI.label1 = guiCreateLabel(32, 66, 160, 17, "Hey laddies and gentleman..!", false, musicplayerGUI.window) guiSetFont(musicplayerGUI.label1, "default-bold-small") musicplayerGUI.label2 = guiCreateLabel(32, 83, 160, 17, "To play music in the player", false, musicplayerGUI.window) guiSetFont(musicplayerGUI.label2, "default-bold-small") musicplayerGUI.label3 = guiCreateLabel(32, 100, 160, 17, "Select the song from the list", false, musicplayerGUI.window) guiSetFont(musicplayerGUI.label3, "default-bold-small") musicplayerGUI.label4 = guiCreateLabel(32, 117, 160, 17, "And hit PLAY! < Enjoy >", false, musicplayerGUI.window) guiSetFont(musicplayerGUI.label4, "default-bold-small") musicplayerGUI.label5 = guiCreateLabel(314, 288, 160, 17, "Visit : [url=http://WWW.FNF-MTA.TK]http://WWW.FNF-MTA.TK[/url]", false, musicplayerGUI.window) guiSetFont(musicplayerGUI.label5, "default-bold-small") musicplayerGUI.volumeBar = guiCreateScrollBar(10, 469, 112, 17, true, false, musicplayerGUI.window) guiScrollBarSetScrollPosition(musicplayerGUI.volumeBar, 100.0) musicplayerGUI.label6 = guiCreateLabel(42, 434, 46, 15, "Volume", false, musicplayerGUI.window) guiSetFont(GUIEditor.label[6], "default-bold-small") guiScrollBarSetScrollPosition (musicPlayerGUI.volumeBar, volume*100) guiWindowSetMovable (musicplayerGUI.window, true) guiWindowSetSizable (musicplayerGUI.window, false) guiSetVisible (musicplayerGUI.window, false) -- Some Events -- addEventHandler ( "onClientGUIDoubleClick", musicplayerGUI.grid, onGuiClick, true) -- DoubleCLickPlaySong addEventHandler ( "onClientGUIDoubleClick", musicplayerGUI.grid, stopGTAradio, true) -- StartMusicTurnOffRadio addEventHandler ( "onClientGUIClick", musicplayerGUI.button1, onGuiClick, true) addEventHandler ( "onClientGUIClick", musicplayerGUI.button2, onGuiClick, true) addEventHandler ( "onClientGUIClick", musicplayerGUI.button3, onGuiClick,true) -- Events End -- stationsNames = {} stations = {} function showGui () if guiShowing then guiShowing = false guiSetVisible (musicplayerGUI.window, false) showCursor (false) else guiShowing = true guiSetVisible (musicplayerGUI.window, true) showCursor (true) end end addCommandHandler("startmusic",showGui) bindKey("f3","down","startmusic") function onGuiClick (button, state, x,y) if source == musicplayerGUI.button1 and state == "up" then --play button local selected = guiGridListGetSelectedItem (musicplayerGUI.grid) if selected then local stationName = guiGridListGetItemText (musicplayerGUI.grid, selected, musicplayerGUI.column) if stationName then if currentPlaying then stopSound (currentPlaying) end currentPlaying = playSound (stations[stationName]) setSoundVolume (currentPlaying, volume) state = "play" else outputChatBox ("[Music Player]: Cant Strean This Song") end elseif state == "pause" and isSoundPaused(currentPlaying) then setSoundPaused (currentPlaying, false) end end if source == musicplayerGUI.button2 and state == "up" then --pause button if isSoundPaused (currentPlaying) == false then setSoundPaused (currentPlaying, true) end end if source == musicplayerGUI.button3 and state == "up" then -- 3d local selected = guiGridListGetSelectedItem (musicPlayerGUI.grid) if selected then local stationName = guiGridListGetItemText (musicplayerGUI.grid, selected, musicplayerGUI.column) if stationName then triggerServerEvent ("onClientRadioCreate", getLocalPlayer(), getLocalPlayer(), stationName) end end end if source == musicplayerGUI.button3 and state == "up" then -- close showGui () end if source == musicplayerGUI.grid and state == "up" then -- grid list click local selected = guiGridListGetSelectedItem (musicplayerGUI.grid) if selected then local stationName = guiGridListGetItemText (musicplayerGUI.grid, selected, musicplayerGUI.column) if stationName then if currentPlaying then stopSound (currentPlaying) end currentPlaying = playSound (stations[stationName]) setSoundVolume (currentPlaying, volume) else outputChatBox ("[Music Player]: This Song Is Offline, Please report to admin") end end end end function OnScroll(Scrolled) if source == musicplayerGUI.volumeBar then volume = guiScrollBarGetScrollPosition (source) / 100 if currentPlaying then setSoundVolume (currentPlaying, volume) end end end addEventHandler("onClientGUIScroll",getRootElement(),OnScroll) function onRadioCreate (x,y,z,path) local sound = playSound3D (path, x,y,z) setSoundVolume (sound, volume) setSoundMaxDistance (sound, 20) end addEvent ("onNewRadioCreate", true) addEventHandler ("onNewRadioCreate", getRootElement(), onRadioCreate) function onStart () triggerServerEvent ("requestForRadios", getLocalPlayer(), getLocalPlayer()) end addEventHandler ("onClientResourceStart", getResourceRootElement(getThisResource()), onStart) function onJoin (radia, names, st) for k,v in ipairs(radia) do local sound = playSound3D (v[4], v[1], v[2], v[3]) setSoundVolume (sound, volume/100) setSoundMaxDistance (sound, 20) end stationsNames = names stations = st for k,v in ipairs(stationsNames) do local row = guiGridListAddRow ( musicPlayerGUI.grid ) guiGridListSetItemText ( musicplayerGUI.grid, row, musicplayerGUI.column, v, false, false ) end end addEvent ("sendAllRadios", true) addEventHandler ("sendAllRadios", getRootElement(), onJoin) Error's at line's : 37 and 20, hope some1 could help me to fix this. ERRORS : line 37 : @ bad argument @ ' addEventHandler ' expected function at argument 3 got nil ERRORS : line 20 : unexpected symbol near *=* ... final result : Loading script failed.. but script is actually loaded, just not opening with my bind button.. Thanks for reading/replying!
  12. Thanks, i'll try to look around bit more into old threads, i might find something usefull for me.
  13. Thanks for help, i was on my local to, and it's actually worked, after i restarted server. idk how's that posible, thanks for help anyway, gui fixed ~> functions added.. Readdy to work in some server EDIT : i use this line, to get player name to the gui guiSetText ( GUIEditor.label[6], getPlayerName ( localPlayer ) ) but i would like to make it color coded, is here anyway i could do that?
  14. Ofc not.. here it is : GUIEditor = { staticimage = {}, label = {}, } GUIEditor.staticimage[1] = guiCreateStaticImage(433, 215, 479, 521, "bgr.png", false) GUIEditor.staticimage[2] = guiCreateStaticImage(0, -5, 550, 40, "tab.png", false, GUIEditor.staticimage[1]) GUIEditor.label[1] = guiCreateLabel(176, 14, 99, 15, "Info Panel - BETA", false, GUIEditor.staticimage[2]) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 9, 200, 13) GUIEditor.label[2] = guiCreateLabel(27, 82, 84, 17, "Nick In-Game :", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[2], "default-bold-small") GUIEditor.label[3] = guiCreateLabel(27, 109, 84, 17, "Serial :", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") GUIEditor.label[4] = guiCreateLabel(27, 136, 84, 17, "Location :", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[4], "default-bold-small") GUIEditor.label[5] = guiCreateLabel(27, 163, 84, 17, "Money :", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[5], "default-bold-small") GUIEditor.label[6] = guiCreateLabel(130, 82, 84, 17, "", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[6], "default-bold-small") GUIEditor.label[7] = guiCreateLabel(80, 109, 84, 17, "", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[7], "default-bold-small") GUIEditor.label[8] = guiCreateLabel(101, 136, 84, 17, "", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[8], "default-bold-small") GUIEditor.label[9] = guiCreateLabel(91, 163, 84, 17, "", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[9], "default-bold-small") GUIEditor.label[10] = guiCreateLabel(21, 479, 44, 15, "--/--/--", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[10], "default-bold-small") GUIEditor.label[11] = guiCreateLabel(21, 450, 49, 15, "00:00:00", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[11], "default-bold-small") GUIEditor.label[12] = guiCreateLabel(5, 413, 469, 15, "___________________________________________________________________________________________", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[12], "default-bold-small")
  15. Hey guys, ye i know it's silly the problem i got right now, but still i need some1 who knows, help. This is the error screen, of my gui. btw, u can't see last error words they are " (a nil value) " and all i get my first image, i'm using 2 for this gui, and none of my labels coming up in the image either.. GUIEditor.staticimage[2] = guiCreateStaticImage(0, -5, 550, 40, "tab.png", false, GUIEditor.staticimage[1]) This is the line that has this error, but idk if it's real or... coz i done gui in guieditor, and didn't added any function yet, but still my gui isn't loading.. btw " i'm doing gui on staticimage for the first time, meybe i must to change something.. or? " Thanks fellas.
  16. Hey guys, as usuall some1 always has a problem in some script, or function... So i came to try get help from some1 to sort my question out. I'm making a simple script, calls " vote system " which is usefull for admins, mods , super mods, ir gamode like " race " to make a vote before restarting a map, it's like clan members rule. to not redo without vote... i've made a dx text function in screen, but like a last time in my post, i'm lost with command handlers, and ACL check, to let the script know that only " Mod, S.mod , Admin. " can use this command. So if anyone who could know, how to finish this simple thing, please reply to this post. Thanks You for reading this post.
  17. Will u make a logo for FNF// again? + nice work
  18. Double topic... again with the six team's
  19. The best u can doo, is to try to add, acl group check inside the script example : if player joined game with name "-lalala-HellNo" lalala is the tag for the " lalala" team, that u can make in autoteams script, acl admin rgihts check, example : VIP system by INVINCIBLE, uses the acl check functions, so if the player is in VIP team, but he's not added in ACL he wount use the VIP powers, sorry, i'm not good explainer.. but i hope that helped you.
  20. Got it all working, thank you for you help guys now the clock is ticking like Quartz one..
  21. As you see, i made labbels for " --/--/-- " and " dd/mm/yy " and kenix's function has label to, but if this helps here is the client code : function GetCurrentDateAndTime ( ) local aRealTime = getRealTime ( ) return string.format ( "%04d/%02d/%02d", aRealTime.year + 1900, aRealTime.month + 1, aRealTime.monthday ), string.format ( "%02d:%02d:%02d", aRealTime.hour, aRealTime.minute, aRealTime.second ) end local sDate, sTime = GetCurrentDateAndTime( ) guiCreateLabel( 0.5, 0.5, 0.5, 0.5, 'Time: ' .. sTime .. ' Date ' .. sDate , true ) --- --- --- --- --- function open() if guiGetVisible ( GUIEditor_Window[1] ) then guiSetVisible ( GUIEditor_Window[1], false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( GUIEditor_Window[1], true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("F2","down",open) function close() if (source == GUIEditor_Button[1]) then guiSetVisible ( GUIEditor_Window[1], false ) showCursor(false) guiSetInputEnabled(false) end end addEventHandler("onClientGUIClick",GUIEditor_Button[1],close,false)
  22. Well, gui is created, but i didn't made label in the gui for time & date, coz Kenix function makes the label, but the label is out of panel directories, just playing around, and trying to get the text in the panel gui... but no succes so far.
  23. Yes thanks, i did it and it's worked for me, but last my problem, the function i using, to create time and date labels, it's outside the gui, trying hard, but no succes, to put the text in the gui.
  24. And one more question, i made bind key function, but there is some mistake, the panel pops up everytime i connect to server, how could i do, that the panel pops up only when i press the " bind key " ? that would be helpfull for me.
  25. Yes, i have this bug, once i start script, time doesn't tick, like on clock, to see the real time i must " restart script " or " reconncet " to update current time and date. so i will try to add render functions as you just sayd, and thanks for help or timer, so i wount need reconnect just to see current time
×
×
  • Create New...