Jump to content

GTX

Members
  • Posts

    1,273
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by GTX

  1. MTA 1.5 and greater versions seem to have problem with launching under Wine. I need to test if that's true someday. https://wiki.multitheftauto.com/wiki/Cl ... nux_Manual
  2. If used correctly, it can be pretty useful
  3. If you want to crash your game, go ahead: local n = 0 local h1, h2, h3 = debug.gethook() debug.sethook(nil) while (n <= 10) do if not (isTimer(timer)) then timer = setTimer(function() outputChatBox("Number: "..n) n = n + 1 end, 1000, 1) end end debug.sethook(_, h1, h2, h3) This should stop the error but will lag your client lol. EDIT: I suppose you want to run timer 10 times? Use it like: local n = 0 timer = setTimer(function() outputChatBox("Number: "..n) n = n + 1 end, 1000, 10)
  4. 1. Percentages table isn't defined 2. Gridlist sorting should sort just fine, why do you need to sort it again? 3. Use guiGridListClear and add rows again to refresh and add new teams.
  5. Column type is okay, it might be because you have those commas like 99,693,897.
  6. First check if your computer supports virtualization, if it doesn't then you can't run 2 MTAs.
  7. Yes, you can if your laptop supports virtualization. Then you can run it with VMWare.
  8. You can't use onPlayerConnect (it's when player attempts to connect). The client script will never be loaded and therefore triggerClientEvent won't make it to client side. But why do you need onPlayerConnect?
  9. If tint technique won't work, it will trigger fallback and will normally draw shader. EDIT: I edited the code and tested it, it works.
  10. First, work from the start. Make one vehicle and apply tinted windows for it. local shader = dxCreateShader("tint.fx", 1, 0, true) -- Create a shader local vehicle = createVehicle(411, 0, 0, 4) -- This will create a vehicle on that GTA farm - in center of GTA map -- Apply that shader we created to vehicle(s) engineApplyShaderToWorldTexture(shader, "vehiclegeneric256", vehicle) -- Apply shader to windows of vehicle technique tint { pass P0 { DepthBias = 0.0000; AlphaBlendEnable = FALSE; // Disable alpha blending SrcBlend = SRCALPHA; // Source blend factor DestBlend = INVSRCALPHA; // Destination blend factor } } // Fallback method technique fallback { pass P0 { // Normal drawing } } Note: You don't need to load shaders for each vehicle. Only 1 is required, then you can apply that to many elements.
  11. GTX

    Browser to ingame

    https://github.com/Austinb/GameQ You can use this. For players, see this: https://forum.multitheftauto.com/viewtopic.php?f ... 0&p=873166
  12. GTX

    IPB BOARD account

    Which IPB? IPB 3.x or IPB 4.x? EDIT: Also, PHP uses lower MD5, while MTA uses upper, so this might work: md5( md5(salt):lower()..md5(password):lower() ):lower()
  13. With HTTP username and password you can call functions in MTA server via PHP. That needs an account on MTA server which must have special privileges. It is all explained on wiki. You don't need to fill those variables, but if you want to call function on server, you can just put username and password as arguments of SDK call function.
  14. GTX

    Decrypt Please

    You can by editing MTA source code, just after deobfuscation you output it to a file and there you go, normal compiled Lua file.
  15. GTX

    dbConnect bug

    Debugscript? And check your server console, you may have a socket error.
  16. Not necessarily, if he really wants bases in the air, then my answer is the best (or CodyL's).
  17. Or just freeze them permanently and when someone enters a vehicle, unfreeze it (onVehicleEnter). There's actually no need to slow down your code with renders and stream events and such...
  18. Just change Nametags_Distance variable.
  19. You need to use MySQL module. https://wiki.multitheftauto.com/wiki/Modules/MTA-MySQL
  20. SD #16 means that anti-cheat component couldn't start. https://wiki.multitheftauto.com/wiki/Anti-cheat_guide I don't know... Did you try to join any other server?
  21. HTTP port is same as server port? Try using different port (for example 22005 for HTTP and 22003 for server)
  22. Well, post the script and we can work something out
  23. Lol? 2 years? Please... Why would you bump old topic like this?
  24. Any errors in debugscript? Is the script server sided? Try: function onQuit() local acc = getPlayerAccount(source) if not isGuestAccount(acc) then local walk = getPedWalkingStyle (source) setAccountData(acc, "wstyle", tonumber(walk)) end end addEventHandler("onPlayerQuit", getRootElement(), onQuit) function onLogin(_, acc) local walk = getAccountData(acc, "wstyle") or 0 setPedWalkingStyle(source, tonumber(walk)) end addEventHandler("onPlayerLogin", getRootElement(), onLogin)
×
×
  • Create New...