Jump to content

XFawkes

Members
  • Posts

    95
  • Joined

  • Last visited

Everything posted by XFawkes

  1. Bumping this up
  2. Is there any possibility to change browser request headers, user-agent for example?
  3. Is there any way I can put a text in a browser textfield that is not hosted on localhost? I know that I could inject mouse down on a textfield and user can type on his own a text string using his keyboard. The point is to do it from the code. Something like: injectBrowserMouseDown injectBrowserMouseUp injectBrowserTextInput("abcdefg") I wanted to use JS to get element by id and update innerText, but executeJavaScript does not with remote addresses.
  4. I am having a problem with a resource that is reading lua files from other resource. It used to work on previous server version. After migrating to 1.5.3 I can see that error: Access denied @ 'fileOpen' [Database credentials protection denied resource aaa to access bbb] How can I disable that protection check? I've given Admin rights to resource aaa. Answer: mtaserver.conf <database_credentials_protection>0</database_credentials_protection>
  5. I am not talking about, how you've called it, patters images or a shader file. I am talking about vehicle model files (I'll remind you which extensions does they have: txd, dff, col) I made long time ago in 3DS Max only for EPG.
  6. You have absolutely no rights to use any of my vehicle model files I made for European Pro Gamers.
  7. There is an option to apply a shader to elements, peds, vehicles etc. I was thinking of applying shader to some effects. There is a well known nitro shader which changes the colour for every player. I know that there should be a way to make 2 same nitro effects in 2 different colors/textures. How could I try to apply shader to only chosen effects - maybe from createEffect? Or I am sure that there should be just a way to do it in fx files - but I am dump in these so I am just asking.
  8. Yeah, I have made an external C# code yesterday which do such thing. Not a good way for me but I see no other options (I wanted to stick to MTA code so I can minimalise user interaction - as I am not the only one who will use it). But thanks, I think it would be great if MTA team add an variable to each resource which will hold the path. resource.path - "" - "[maps]" - "[maps]/[dm]"
  9. Thanks, but I've tried that already, and I suppose fileExists only can accept resourcenames without their path.. I get 0 results using that function. EDIT: I am trying to find it out using OOP. Look: https://wiki.multitheftauto.com/wiki/Resource "A name, state, root element, base directory path are associated to a resource, among other attributes." I can use: resource.name, resource.state - and it works well, I am wondering if there is smth like: resource.path <- It is not working, but I am trying to find it. Is there any way to get all oop variables (name, state...)? I've just found how to get all oop functions: local t = getmetatable(res).__class for k,v in pairs(t) do outputChatBox(k) end Any ideas how to help me? EDIT2: local t = getmetatable(res).__get for k,v in pairs(t) do outputChatBox(k) end There is no path, for resource ;/ EDIT3: I am thinking of using renameResource which supports orgizational path. local name = getResourceName(res) local renamed = renameResource(res,name,"[mycategory]") if renamed then -- I know that the resource wasnt in that folder else -- Hurray I've found resource which is in [mycategory] path end ^ works well, but I have a problem, when 'renamed' returns false, the resource is moved to mycategory, I could move it to root folder by doing renameResource again, but I'd like to move them to their original category... (If they were moved from [firstcategory] to [mycategory] then I am loosing the info about firstcategory)
  10. How can I get resource organization path? I'd like to collect maps which are stored in a organization path. Is that possible? getResources("[newmaps]")
  11. XFawkes

    Shader

    try checking: snowground.fx file finalColor.a = texel.a * PS.Diffuse.a; try to multiply it with a 2 or 3 finalColor.a = texel.a * PS.Diffuse.a * 3;
  12. Affected rows:0 IT means that it received the mysql query and it is correct [syntax] but there were another problems? No row with UID = 1 ? missing collumns money , skin?
  13. local hour, minutes = getTime() if (hour >= 6 and hour < 12) or (hour >= 19 and hour < 22) then --another if's -- code end It will allow the gate to move between 6:00 and 11:59 or 19:00 and 21:59
  14. Hmm I didn't tested the idea I just came out. What IF I dont change the log file directory, but I modify the file. lets say I have logs in: /logs/server.log Program copies the file everyday at 0:00 to: /logs/server_RRRR_MM_DD.log and clears /logs/server.log So the server.log have saved logs since 0:00 this day to 'now' all the time So the destination doesn't need to be changed. I am just wondering if this will actually work? I will check the idea tomorrow
  15. I do made an easy EXE program which changes the mtaserver.conf file using the real time date, but I don't want to restart server (even during night time, because still 4-5 players at server)
  16. Is there any way to change the LOG file destination, without restarting the server?
  17. XFawkes

    [REL] Piano

    https://www.freesound.org/people/Tesabo ... ge=1#sound C,Cis,D,Dis,E,F,Fis,G,Gis,A,Ais,H And please do smth with that, because when I am looking at the screens and I see that black keys in such a weird position it is just a pain for my eyes
  18. Have you checked how vehicles behave in contact to water?
  19. And again - sorry but I think this need any comment. MTA Team?
  20. Sorry for double post but I really need to get rid of this bug
  21. I have found smth weird. When you are trying to change a handling [suspensionLowerLimit] and after that go back to default value your vehicle react really weird in close contact to water. Take a look at video: ADNOTATIONS ON Even if you change vehicle [notice that I used setVEHICLEHandling, not setMODELHandling] is still behave like on video. Reconnecting from the server doesn't help. The only way I've found is restarting MTA. Is there any way to set behaviour back to normal? Could someone report this bug at bugtracker (I don't have acc there)
  22. Hello I am ~[EPG]~Puma and I am a scripter and I was a mapper. I decided to upload all my maps here so you can have fun playing them. Enjoy. DOWNLOAD [DD] [DD] Random DD My last great achievement. Every player has some time to 'draw' a part of DD map. You are leaving modified carshade objects behind you so everytime the map looks different. [DD] Random DD 2 You can now change levels by pressing UP and DOWN arrows! [DD] Cross Cheetach Cross [DD] Cross 2D 2D camera view - so funny [DD] Cross 4D You are allowed to drive opposite down or on walls! [DD] MultiCar Same cross with different cars. [DD] MultiTrash Cross with heavy vehicles. [DM] [DM] Summer Jobs New Style scripted DM [DM] Autumn Jobs Next one [DM] Winter Jobs Cold map [DM] Tommorow Traps everywhere [DM] Mind Old map but I love it soo much [DM] Mind 2 part 1 Recorded nice movie for this map - first scripted map [DM] Mind 2 part 2 Mind 2 was split to 2 maps because of the size [13 minutes] [DM] Welcome to Patrick's City Decorated wild west map! [DM] Portals You have to pass all 4 portals to open the final one with hunter at the center! [DM] Hakuna-Matata 2007 My first very old map [DM] Hakuna-Matata 2009 My third map, also very old [DM] Puma & Xerox First ft. map, scripted with nice design. [DM] Waves 2 Very old map [DM] Waves 3 2nd part of the Waves 2 [DM] Waves 4 Scripted version of Waves [DM] Waves The newest Waves with the '1' number [FUN] [FUN] Revolt You have to pass the bomb or you will get blown up! [FUN] Caged Raiders You stay locked in a cage and you have to be lucky to get hunter and use bonuses [FUN] x10 How to get that hunter?! [sHOOTER] You collect weapons and shoot players to win (Predator missile, Rocket Launcher, Lasers, Mines allowed!) Maps created by SATAN [sHOOTER] Ambush [sHOOTER] Berlin 1940 [sHOOTER] Chinatown Wars [sHOOTER] Conifer Forrest (no image) [sHOOTER] Giza [sHOOTER] New York [sHOOTER] Nippon [sHOOTER] The Villiage [sHOOTER] Vacant I recommend: Random DD Random DD 2 all maps with SATAN [shooters] Revolt Portals and all Seasonal Jobs DOWNLOAD
  23. 1. function onStart( ) AcceptJobButton = guiCreateButton( 300, 300, 100, 100, "Accept Job!", false ) addEventHandler ( "onClientGUIClick", AcceptJobButton, showMarkers ) end addEventHandler( "onClientResourceStart", resourceRoot, onStart ) function showMarkers ( ) -- ... end 2. function onStart( ) myMarker = createMarker(0,0,20,"corona",5) addEventHandler ( "onClientMarkerHit", myMarker, hideThisMarker ) end addEventHandler( "onClientResourceStart", resourceRoot, onStart ) function hideThisMarker ( ) local marker = source setTimer(function(marker) setElementAlpha(marker,0) -- or destroyElement(marker) end,5000,1,marker) end
  24. zainstaluj najnowszy server od MTA i powinienes to mieć (po prostu przeinstaluj całe MTA)
×
×
  • Create New...