Jump to content


  • Posts

  • Joined

  • Last visited

Posts posted by Hell_Demon

  1. I think you can force MTA to use the controller :)

    in singleplayer the addresses for this are:

    0xBA6818 - Controller Configuration [byte] values:

    * 0 = Mouse+Keys

    * 1 = Joypad

    0xB6EC2E - REAL aiming mode offset, not menu.

    * 0 = joypad

    * 1 = mouse + keys

    Set both of those adresses to the value of joypad and it should use joypad :)

    I didnt test it because I dont have a joypad, so use something like cheatengine or TSearch to set those values.

  2. function getXYInFrontOfPlayer( distance ) 
        local x,y,z = getElementPosition( getLocalPlayer() ) 
        local rotation = getPlayerRotation( getLocalPlayer() ) 
        rotation = rotation/180*3.141592 
        x = x + ( math.sin(rotation) * distance ) 
        y = y + ( math.cos(rotation) * distance ) 
        return x, y 

    I didn't test this because I dont have MTA installed at the moment, its a conversion from GetXYInFrontOfPlayer on sa-mp.

    If there are problems post them here :)

  3. function change() 
    txd = engineLoadTXD ( "models/monster.txd" ) 
    engineImportTXD ( admiral, 3781 ) 
    dff = engineLoadDFF ( "models/monster.dff", 0 ) 
    engineReplaceModel ( admiral, 3781 ) 
    addCommandHandler ( "setcashe", change ) 

    You had function change which needs to be function change()

  4. I have been replacing the infernus with a porsche carrera GT, this is what i found:

    The custom model looks weird when you apply it before spawning the vehicle.

    The custom model looks as it should look if you spawned the vehicle before applying the model.

    Your character sits on vehicle seat 1 when you enter the car if you spawned it before applying the model.

    If you spawn a second vehicle (with model already applied) the custom model looks as it should look but when you get into it, your character will sit in the center of the car.

    So its like this:

    *spawn vehicle 1*

    *Apply custom model, everything is fine*

    *spawn vehicle 2*

    *custom model is fine, but character sits in center of vehicle*

    This is when you apply model before spawning vehicle:


    This is how it looks if you apply model after spawning the vehicle:


  • Create New...