Jump to content

Search the Community

Showing results for tags 'help.'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • [Read-Only] Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

Found 2 results

  1. When I replace head and torso textures, it works just fine. But when i replace any shirt. It just uses cj's torso texture And heres the code Meta.xml: <meta> <info name="hesucj" version="1.4" type="misc"/> <script src="Skin.lua" type="client" /> <file src="head.dff" /> <file src="head.txd" /> <file src="player_face.txd" /> <file src="player_torso.txd" /> <file src="torso.txd" /> <file src="hoodjackbeige.txd" /> </meta> Skin.lua: function replaceModel() dff = engineLoadDFF("head.dff", 30087 ) engineReplaceModel(dff, 30087) txd = engineLoadTXD("player_face.txd", 30418 ) engineImportTXD(txd, 30418) txda = engineLoadTXD("player_torso.txd", 30421 ) engineImportTXD(txda, 30421) txde = engineLoadTXD("hoodjackbeige.txd", 30378 ) engineImportTXD(txde, 30378) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel)
  2. Well I recently made a new script that gonna attach some weapon to a specific and i bounded this function to key and evrything was going fine the weapons ae attached to the car and its firing and alls good but the issue is when i try to shoot another player car or i try to damage a player , I cannot do well i think because that function is only called for the client when he press the bind and i was looking arround for something to let that fire dmg the others but i cant find in mta client function wiki that's why I'm seeking for help here local replacementGunKey = "vehicle_fire" function addt() bindKey ( replacementGunKey, "both", fireHydraGuns ) end addEventHandler ( "onClientResourceStart", root, addt) function fireHydraGuns ( key, keyState ) if ( keyState == "down" ) then if ( key == replacementGunKey ) and hydraGuns == true then toggleControl ( replacementGunKey, false ) setWeaponState(hydraGunL, "firing") setWeaponState(hydraGunR, "firing") fireWeapon(hydraGunL) fireWeapon(hydraGunR) setWeaponProperty(hydraGunL, "fire_rotation", 10, 4, 0) setWeaponProperty(hydraGunR, "fire_rotation", 10, 4, 0) end end if ( keyState == "up" ) then if ( key == replacementGunKey ) or hydraGuns == false then setWeaponState(hydraGunL, "ready") setWeaponState(hydraGunR, "ready") toggleControl ( replacementGunKey, true ) end end end
×
×
  • Create New...