Dev

Members
  • Content Count

    161
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Dev

  • Rank
    Busta
  • Birthday 27/12/1996

Details

  • Gang
    ◆◆◆◆◆◆◆
  • Location
    Haryana, India
  • Occupation
    High School Student
  • Interests
    Computer Programming

Recent Profile Visitors

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

  1. Dev

    L10n - AKA The Giant Translation Project

    I would like to contribute towards the translation of Hindi, the native language of seventh largest country in the world ( India ). However, it requires Unicode support.
  2. Hey there, so I'm basically trying to replace a texture with a .png file I downloaded, I know it's possible as I've seen a number of servers doing it, but I have no clue what to do, the texture I want to replace is a wall and I know dxCreateTexture and dxCreateShader play a part in this, but no idea how to get this going. Some guidance please?
  3. Dev

    removeWorldModel not working?

    Nevermind, the object was actually in interior 10, it's working now.
  4. Hey there, I'm trying to use removeWorldModel server side to remove a desk ( ID: 2198 ) placed in interior 0 & dimension 200. The script is working fine, but it's not removing the object at all. There's no error in /debugscript 3 and I'm running the script in map editor. Server Side: Meta:
  5. Dev

    mta_sdk, PHP, Could not connect to...

    Eh, I need to ask something, how are you getting the results on your browser without using the php echo function? I'm trying to do the same thing, get a return from a .lua file with http as true in the meta export, but nothing seems to be returned to the .php page.
  6. Dev

    Help Making Fuel system

    Why are you storing fuel as a string? store it as an integer, and then use the 'tostring' to output it in your directX drawing. setTimer( function( ) for i, v in ipairs ( getElementsByType("vehicle") ) do if ( tonumber( getElementData(v, "fuel") ) == 0 ) then setElementData( v, "fuel", 50, true) -- outputChatBox( v ) 'v' is a vehicle element, you can't output it to chatbox.. end end end, 500, 0 ) local fuel = getElementData( getPedOccupiedVehicle(localPlayer), "fuel" ) dxDrawBorderedText("Fuel: ".. tostring( fuel ) .."%", screenWidth*0.750, screenHeight*0.9, screenWidth, screenHeight, tocolor(255, 255, 255), scale, "arial", "left", "center")
  7. This is awesome, keep up with the good work!
  8. Dev

    measuring speed

    We won't give you ready-made scripts here, research on the wiki abit and try to produce your own code, then come here if you need assistance. And yes, you will have to use the onClientPlayerTarget event.
  9. Dev

    Tell me your dream.

    I'd rather not share the type of dreams I get.. I mean.. some a really.. really.. well, let's say.. eccentric.
  10. Dev

    Help, this is possible?

    Try this. addCommandHandler('trailer', function( thePlayer ) if ( thePlayer ) then local x, y, z = getElementPosition( thePlayer ) local truck = createVehicle( 515, 0, 0, 3 ) if ( truck ) then setElementPosition( truck, x + 5, y, z ) local trailer = createVehicle( 435, 0, 0, 3 ) if ( trailer ) then setElementFrozen( trailer, true ) local success = attachTrailerToVehicle( truck, trailer) if ( success ) then setElementFrozen( trailer, false ) outputChatBox('Trailer attached to the Truck.', thePlayer ) end end end end end )
  11. Dev

    Move vehicle

    'moveObject' can only be used to move elements of 'object' type, not 'vehicles' or 'peds'.
  12. He's talking about installing MTA server on Linux operating system with Ubuntu.
  13. Dev

    [HELP] Problem removing world model

    Are you sure that the x, y, z positions are correct? Double check them by setElementPosition'ing yourself there.
  14. Dev

    problem with target

    Post the error logs and full code please.
  15. Dev

    Retextured Weapons[DL]

    Pretty nice, downloading now.