-
Posts
4,961 -
Joined
-
Last visited
Everything posted by Jaysds1
-
Is it possible that you have 2 servers running?
-
How do you start map editor? Through server? or the 'Map Editor' label in the MTA Program?
-
Try using this website for mysql: http://www.bizhostnet.com/ I use it for free mysql...
-
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.
-
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.
-
Sorry, I don't think it's possible for security reasons...
-
Did you use a function called: removeWorldModel ?
-
sorry for the late reply/bump... if this issue isn't solved, can you tell me what specific model are you trying to remove.
-
GET SOME OF THAT!!!
-
A: The society lets the rich people live longer and the poor suffer... Q: Anymore self explanatory questions?
-
A: Thanks!!! Q: so, Anyone else wants to offer anything?
-
A: Love both of them Q: Why do you hate your Ex?
-
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)
-
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 )
-
This sounds quiet interesting...
-
Can you post a full code pls, or give us the gridlist variable?
-
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 )
-
A: None Q: Can I have both of them?
-
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 )
-
it should work, Did you try restarting the resource and asking you friends to reconnect?
-
well, I don't think you could filter gamemodes in client or server...
-
Basically, you could leave it in '.zip' format, but if you need to edit something in it, just extract it.
-
, 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...
-
A: Maybe Q: Who comes on this anymore?