Search the Community
Showing results for tags 'help.'.
-
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)
-
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
- 7 replies
-
- help.
- fireweapon
-
(and 1 more)
Tagged with:
