Jump to content

3B00DG4MER

Members
  • Posts

    512
  • Joined

  • Last visited

Everything posted by 3B00DG4MER

  1. Why then CIT2 Server is using it ?!
  2. Can you made it if He Move will Go to Default Dimension setElementDimension ( thePlayer, 0 )
  3. Hello,I made today a Command which Can Download the Model,Vehicles,Weapons,Skins When you do the Command /download,it should be start downloading the Model,But It's not work Help please Meta: "false" src="fortune.dff"/> "false" src="fortune.txd"/> Client: function downloadfile() outputChatBox ( "The Download has started" ) downloadFile ( "fortune.txd" ) downloadFile ( "fortune.dff" ) end addCommandHandler ( "download", downloadfile ) function onDownloadFinish ( file, success ) if ( source == resourceRoot ) then -- if the file relates to this resource if ( success ) then -- if the file was downloaded successfully if ( file == "fortune.txd" ) and ( file == "fortune.dff" ) then -- if the file name is what we were expecting outputChatBox ( "the file has succesfully finnised " ) txd = engineLoadTXD ( "fortune.txd" ) engineImportTXD ( txd, 526 ) dff = engineLoadDFF ( "fortune.dff", 526 ) engineReplaceModel ( dff, 526 ) end else -- if the file wasn't downloaded successfully if ( file == "fortune.txd" ) and ( file == "fortune.dff" ) then outputChatBox ( "fortune failed to download" ) end end end end addEventHandler ( "onClientFileDownloadComplete", getRootElement(), onDownloadFinish ) Error: client.lua:3: attempt to call global 'downloadFile' (a nil value)
  4. Hello,I made New System AFK IT's Work without Bugs But it doesn't get to Dimension 1 Server : function checkAFKPlayers() for index, thePlayer in ipairs(getElementsByType("player"))do -- Loop all online players if (getPlayerIdleTime(thePlayer) > 300000) then -- Player hasn't moved for 300,000ms (5 minutes) setElementDimension ( thePlayer, 1 ) outputChatBox("AFk Check") end end end setTimer(checkAFKPlayers, 30000, 0) -- Timer to execute every 30 seconds, checking for idlers
  5. Still Nothing Anyone HElp me Debug script Error : ERROR: Client (|PD|XGamer) triggered serverside event onPlayerChatMessage, but event is not added serverside
  6. Hello,I made A Panel send Message The Bug is,When i click Send will Send For me Only The Message show for Client only Help Client: function onClickSend(button, state) if button == "left" then if tostring( guiGetText( GUIEditor.edit[1] ) ) == "" then else local editmsg = tostring( guiGetText( GUIEditor.edit[1] ) ) local playerName = getPlayerName( localPlayer ) local row = guiGridListAddRow ( GUIEditor.gridlist[1] ) guiGridListSetItemText ( GUIEditor.gridlist[1], row, 2, editmsg, false, false ) guiGridListSetItemText ( GUIEditor.gridlist[1], row, 1, playerName , false, false ) triggerServerEvent("onPlayerChatMessage",localPlayer,editText,Log) guiSetText ( GUIEditor.edit[1] , "" ) end end end addEvent( "Sendmsg", true ) addEventHandler( "Sendmsg", getRootElement(), onClickSend ) Server: addEvent("onPlayerChatMessage",true) addEventHandler("onPlayerChatMessage",root,function ( Text , Log ) triggerClientEvent("Sendmsg",source,text) function logMessage(text,player) if text and player then local log = fileOpen("Logs/support.log") or fileCreate("Logs/support.log") -- if log then fileSetPos(log,fileGetSize(log)) fileWrite(log,"\r\n",""..player.." | "..text.."") fileFlush(log) fileClose(log) end end end end ) Help plz
  7. Thanks,But i did it,Before you said it Thanks for the info to debug script
  8. Thanks Citizen But there is Problem When i start the resource nothing Happened I tried to add "bindkey",but the same Error Can you Help me ? GUIEditor = { window = {}, button = {}, gridlist = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(252, 144, 712, 475, "Support Panel", false) guiWindowSetSizable(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) showCursor( false ) GUIEditor.button[1] = guiCreateButton(585, 398, 111, 50, "Send", false, GUIEditor.window[1]) addEventHandler("onClientGUIClick", GUIEditor.button[1], onClickSend, false) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.edit[1] = guiCreateEdit(35, 394, 540, 54, "", false, GUIEditor.window[1]) GUIEditor.gridlist[1] = guiCreateGridList(12, 27, 684, 361, false, GUIEditor.window[1]) local name = guiGridListAddColumn(GUIEditor.gridlist[1], "Name", 0.2) local message = guiGridListAddColumn(GUIEditor.gridlist[1], "Message", 0.8 ) end ) function winshow() guiWindowSetSizable(GUIEditor.window[1], true) showCursor( true ) end bindKey ( player, "F2", "down", winshow ) function onClickSend(button, state) if button == "left" then local editmsg = tostring( guiGetText( GUIEditor.edit[1] ) ) local playerName = getPlayerName( localPlayer ) local row = guiGridListAddRow ( GUIEditor.gridlist[1] ) guiGridListSetItemText ( GUIEditor.gridlist[1], row, 1, editmsg, false, false ) guiGridListSetItemText ( GUIEditor.gridlist[1], row, 1, playerName, false, false ) end )
  9. Anyone Fix it please ? When i pressed Send nothing Happened
×
×
  • Create New...