Jump to content

Jaysds1

Members
  • Posts

    4,961
  • Joined

  • Last visited

Everything posted by Jaysds1

  1. Is it possible that you have 2 servers running?
  2. How do you start map editor? Through server? or the 'Map Editor' label in the MTA Program?
  3. Try using this website for mysql: http://www.bizhostnet.com/ I use it for free mysql...
  4. This message pops up when you were working on a large map from before and it loads the map again... Map Editor automatically saves the map whether you save it or not... so, if you saved the previous map then I think it's safe to delete the 'editor_dump' folder.
  5. If you have your ip address in the mtaserver.conf file, please remove it... I get those errors if I put in an External IP, so, I just leave it blank since I have a router.
  6. Jaysds1

    Output console

    Sorry, I don't think it's possible for security reasons...
  7. Did you use a function called: removeWorldModel ?
  8. sorry for the late reply/bump... if this issue isn't solved, can you tell me what specific model are you trying to remove.
  9. A: The society lets the rich people live longer and the poor suffer... Q: Anymore self explanatory questions?
  10. A: Thanks!!! Q: so, Anyone else wants to offer anything?
  11. A: Love both of them Q: Why do you hate your Ex?
  12. Jaysds1

    Modinfo

    basically, because the event is the only thing that could send the mod info but I know a way EDITED: Server addCommandHandler("modinfo",function(source,_,pName) if isObjectInACLGroup("user."..getAccountName(getAccount(source)),aclGetGroup("admin"))then local player = getPlayerFromName(pName) if not player then outputChatBox("Sorry, but there's no one named "..pName,source,100,0,0) return end triggerClientEvent(player,"getModInfo",player,source) end end) addEvent("receiveModInfo",true) addEventHandler("receiveModInfo",root,function(file) if file then if outputConsole(fileRead("mods.txt",fileGetSize("mods.txt")),client) then outputChatBox("Mods Loaded, Check Console for mods info.",client,0,100,0) end else outputChatBox("There's no mods available!",client,100,0,0) end end) addEventHandler("onPlayerModInfo",root,function(filename, modList) triggerClientEvent(source,"saveModInfo",source,filename,modList) end) Client addEvent("getModInfo",true) addEventHandler("getModInfo",root,function(rPlayer) triggerServerEvent("receiveModInfo",rPlayer,fileOpen("mods.txt")) end) addEvent("saveModInfo",true) addEventHandler("saveModInfo",root,function(filename,modList) local file=fileCreate("mods.txt") if file then local mod = "File: "..filename.." Contents:\n" for _,v in ipairs(modList)do mod = mod.." "..v end fileWrite("mods.txt",mod) fileClose(file) end end)
  13. Jaysds1

    Boolen

    i actually did that on purpose, so if the player doesn't select any row, then the label would be changed to the players name
  14. try this: addEventHandler ( "onClientGUIClick", guiRoot, function ( ) local fixit = (source == fix) local blowit = (source == blow) if fixit or blowit then local row = guiGridListGetSelectedItem ( Grid ) if row== -1 then return end local playerName = guiGridListGetItemText ( Grid, row, 1 ) local player = getPlayerFromName ( playerName ) if ( not player ) then return end triggerServerEvent ( "doVehicleAction", localPlayer, player,fixit,blowit) end end ) addEvent ( "doVehicleAction", true ) addEventHandler ( "doVehicleAction", root, function ( player, fix,blow ) if isPedInVehicle(player) then local vehicle = getPedOccupiedVehicle ( player ) if fix then fixVehicle ( vehicle ) elseif blow then blowVehicle ( vehicle ) else outputChatBox(fit.." and "..blow,client) end end end )
  15. Can you post a full code pls, or give us the gridlist variable?
  16. Jaysds1

    Boolen

    I fixed it on one of my posts: player_name = guiCreateLabel( 0.325, 0.1, 0.5, 0.2, "PlayerName: ", true, Wnd ) --label is created first player_name2 = "PlayerName: "..getPlayerName ( localPlayer ):gsub ( "#%x%x%x%x%x%x", "" ) function change_name() local row = guiGridListGetSelectedItem ( Grid ) if row == -1 then guiSetText(player_name,player_name2) else guiSetText( player_name,guiGridListGetItemText(Grid,row,1)) end end addEventHandler ( "onClientGUIClick", Grid, change_name, false )
  17. Try this: local Column = guiGridListAddColumn( Grid, "Player", 0.85 ) function playerList() if not isElement(Grid) then outputDebugString("Column/Grid not created!") return end for _, player in ipairs(getElementsByType("player")) do guiGridListSetItemText ( Grid, guiGridListAddRow ( Grid ), Column, getPlayerName ( player ):gsub ( "#%x%x%x%x%x%x", "" ), false, false ) end end addEventHandler("onClientResourceStart",resourceRoot, playerList) addEventHandler("onClientPlayerJoin", root, playerList) addEventHandler("onClientPlayerQuit", root, playerList) addEventHandler("onClientPlayerChangeNick", root, playerList) player_name = guiCreateLabel( 0.325, 0.1, 0.5, 0.2, "PlayerName: ", true, Wnd ) --label is created first player_name2 = "PlayerName: "..getPlayerName ( localPlayer ):gsub ( "#%x%x%x%x%x%x", "" ) function change_name() local row = guiGridListGetSelectedItem ( Grid ) if row == -1 then guiSetText(player_name,player_name2) else guiSetText( player_name,guiGridListGetItemText(Grid,row,1)) end end addEventHandler ( "onClientGUIClick", Grid, change_name, false )
  18. it should work, Did you try restarting the resource and asking you friends to reconnect?
  19. well, I don't think you could filter gamemodes in client or server...
  20. Jaysds1

    How to put.....

    Basically, you could leave it in '.zip' format, but if you need to edit something in it, just extract it.
  21. , here's the toy: http://t2.gstatic.com/images?q=tbn:ANd9 ... _INvNjAmN- Xeno told me to show you the pic because he wants to know which colour you want...
×
×
  • Create New...