Jump to content


  • Posts

  • Joined

  • Last visited

1 Follower

About Buffalo

  • Birthday 22/12/1992


  • Gang
  • Location
    Lithuania, Vilnius
  • Occupation
    Selling molly
  • Interests
    Zombie HELL PARTY

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Buffalo's Achievements


Pee-Wee (21/54)



  1. Hi all, After patching everything to 1.5.6 MTA client craches when ever I join the specific ZHP server. If I to join any other server first and join back, then it's golden. It crashes once mods loading percentage starts filling up. Could you please try help me triage the issue. Crash dumps https://ufile.io/2o707 Is there no attachment option on posts
  2. Buffalo

    Mouse aim bug

    It solved the issue indeed. Many thanks.
  3. Buffalo

    Mouse aim bug

    Thanks ccw. Here's the pastebin https://pastebin.mtasa.com/447242767
  4. Buffalo

    Mouse aim bug

    One of my players reported strange bug that happens for them in all the servers. The mouse keeps going down when ever starting to aim the weapon. Happens only in MTA application. There's no additional mices or controllers connected. Any ideas?
  5. So when you are not using render targets you are drawing to the screen. Using a render target is like drawing on canvas, which then can be drawn on screen like any image. Steps: -create a render target -set render target to draw on -draw with standart dx functions -reset render target to screen -draw your target on screen Example from wiki: addEventHandler("onClientResourceStart", resourceRoot, function() myRenderTarget = dxCreateRenderTarget( 80, 100 ) -- Create a render target texture which is 80 x 100 pixels end ) addEventHandler( "onClientRender", root, function() if myRenderTarget then dxSetRenderTarget( myRenderTarget ) -- Start drawing on myRenderTarget dxDrawText ( "Hello", 10, 20 ) -- Draw a message dxSetRenderTarget() -- Stop drawing on myRenderTarget dxDrawImage( 50, 50, 100, 100, myRenderTarget ) -- Now use myRenderTarget as a material and draw it lots of times dxDrawImage( 150, 350, 150, 100, myRenderTarget ) dxDrawImage( 250, 250, 100, 150, myRenderTarget ) dxDrawImage( 350, 30, 150, 150, myRenderTarget ) end end ) Render targets are great for optimizing Standart scoreboard resource calls hundreds dx functions per frame decreasing fps But with render targets you can draw many times only once per second on the target and render that target with only one dx function saving fps Also you can capture screen and draw it later on, see resource speedcams.
  6. You should check out hedit resource. Getting specified field in table is table["field"] So in this case getVehicleHanding(theVehicle)['maxVelocity'] See wiki getVehicleHandling for all the field.
  7. Hello, Did anyone try get user account name who authenticated on web? Theres an example on wiki, but all I get is "undefined" instead of name. Is this even possible? <* local accName = getAccountName(user) if not accName then return end httpSetResponseCookie("userName",accName) *> <!DOCTYPE html> <html> <body onLoad="getAcc();"> Your Account Name is: <span id="accnam"></span> <script> //getCookie function from w3schools.com function getCookie(c_name){ var i,x,y,ARRcookies=document.cookie.split(";"); for (i=0;i<ARRcookies.length;i++){ x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("=")); y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1); x=x.replace(/^\s+|\s+$/g,""); if (x==c_name) return unescape(y); } } function getAcc(){ var acc = document.getElementById("accnam"); var name = getCookie("userName"); if(!name || name!="") acc.innerHTML = name; else acc.innerHTML = "Could not get your account name!"; } </script> </body> </html> Solved! <* httpWrite( "<script> var userName = '"..getAccountName(user).."';</script>" ) *>
  8. Same here! After changing my HDD im now using windows 8 the only difference from windows 7. Game runs at 60fps (server fixed fps), everyone is faster than me. Even my char is slow. It's the feeling like my handling.cfg would use slow settings. Like I would be playing with 25fps or so. Same processor brand, little faster clocked at 3.5.
  9. No. Except you can replace other cars and set their handling to infernus handling, so you will have 5 infernus-handling modded cars.
  10. Buffalo

    need help

  11. createWeapon is client side, you must create turret for every client by syncing position using serverside triggering. Store positions in serverside array. Update newly joined clients where turrets are placed and their state. Sync turret state among all clients using triggering. You also can sync without triggering but detecting clientside colshape hits when other players enetrs them. Tho target changing might be less tricky doing serverside syncing what turret is targeting. You can not send client side elements to server! Instead send what is current turret target.
  12. Buffalo

    [HELP] Script

    Noone is able to help you, it's only a fragment code that tells us nothing. Post more code how ttt is called and how you want it to work
  13. There are numerous problems with ped using weapons, as I was trying to use them in early 2013, I don't think its fixed. I would suggest you using simple createWeapon instead of a ped with a weapon, it won't change your concept and also should work as you intended.
  14. Use your 1 pixel image and draw it on whole screen Example: local screenX,screenW = guiGetScreenSize() addEventHandler('onClientRender',getRootElement(),function() dxDrawImage( 0,0,screenX,screenW,"my1pximage.png") end)
  15. Buffalo


    There is shader example https://wiki.multitheftauto.com/wiki/Shader_examples Also try using search in community.multitheftauto.com I'm sure you'll find great example resources.
  • Create New...