Dimos7

Members
  • Content Count

    1,480
  • Joined

  • Last visited

Community Reputation

77 Popular

About Dimos7

  • Rank
    Loc
  • Birthday 09/02/1994

Details

  • Location
    Greece

Recent Profile Visitors

3,001 profile views
  1. Dimos7

    whats wrong with this script?

    engineSetModelLODDistance Try this
  2. Use expprt function for those
  3. Dimos7

    whats wrong with this script?

    Try it and see
  4. Dimos7

    whats wrong with this script?

    I think was a function for that make it invisible
  5. Dimos7

    whats wrong with this script?

    For that work you need do giveWeapon function
  6. Dimos7

    how to fix this script

    Any errors or warnings in debugscipt 3?
  7. Dimos7

    whats wrong with this script?

    function test() x,y,z = getElementPosition(localPlayer) weapon = createWeapon("ak-47", x, y, z) setWeaponAmmo(weapon, 1) setWeaponClipAmmo(weapon, 32) setWeaponState(weapon, "ready") setElementAlpha(weapon, 0) local newAK = createObject(2965, x, y, z) attachElements(weapon, newAK) exports['bone_attach']:attachElementToBone(newAK, localPlayer, 12, 0, 0, 0, 0, -90, 0) end addCommandHandler("aktest", test) addEventHandler("onClientKey", root, function(button, press) if button =="mouse1" and press or button =="lalt" and press or button =="lctrl" and press then setPedAnimation(localPlayer, "rifle", "rifle_fire", -1, false, true, false, false) fireWeapon(weapon) setWeaponState(weapon, "firing") else setPedAnimation(localPlayer, false) setWeaponState(weapon, "ready") end if button =="mouse2" and press then if button == "mouse2" and press and getControlState (localPlayer, "crouch") then setPedAnimation(localPlayer, "rifle", "rifle_crouchfire", -1, false, true, false, false) else setPedAnimation(localPlayer, false) end setPedAnimation(localPlayer, "rifle", "rifle_fire", -1, false, true, false, false) else setPedAnimation(localPlayer, false) end end ) addEventHandler("onClientWeaponFire" , root, function(hitElement, hitX, hitY, hitZ) setPedAimTarget(localPlayer, hitX, hitY, hitZ) end )
  8. Dimos7

    whats wrong with this script?

    yes
  9. Dimos7

    whats wrong with this script?

    function test() x,y,z = getElementPosition(localPlayer) weapon = createWeapon("ak-47", x, y, z) setWeaponAmmo(weapon, 1) setWeaponClipAmmo(weapon, 32) setWeaponState(weapon, "ready") setElementAlpha(weapon, 0) local newAK = createObject(2965, x, y, z) attachElements(weapon, newAK) exports['bone_attach']:attachElementToBone(newAK, localPlayer, 12, 0, 0, 0, 0, -90, 0) end addCommandHandler("aktest", test) addEventHandler("onClientKey", root, function(button, press) if button =="mouse1" and press or button =="lalt" and press or button =="lctrl" and press then setPedAnimation(localPlayer, "rifle", "rifle_fire", -1, false, false, false, false) fireWeapon(weapon) setWeaponState(weapon, "firing") else setPedAnimation(localPlayer, false) setWeaponState(weapon, "ready") end if button =="mouse2" and press then if button == "mouse2" and press and getControlState (localPlayer, "crouch") then setPedAnimation(localPlayer, "rifle", "rifle_crouchfire", -1, false, false, false, false) else setPedAnimation(localPlayer, false) end setPedAnimation(localPlayer, "rifle", "rifle_fire", -1, false, false, false, false) else setPedAnimation(localPlayer, false) end if button =="mouse2" and press and button =="mouse1" and press then fireWeapon(weapon) setWeaponState(weapon, "firing") setPedAnimation(localPlayer, "rifle", "rifle_fire", - 1,false, false, false, false) else setPedAnimation(localPlayer, false) setWeaponState(weapon, "ready") end if button == "mouse1" and press and button =="mouse2" and press and getControlState(localPlayer, "crouch") then fireWeapon(weapon) setWeaponState(weapon, "firing") setPedAnimation(localPlayer, "rifle", "rifle_crouchfire", - 1, false, false, false, false, false) else setPedAnimation(localPlayer, false) setWeaponState(weapon, "ready") end end end) addEventHandler("onClientWeaponFire" , root, function(hitElement, hitX, hitY, hitZ) setPedAimTarget(localPlayer, hitX, hitY, hitZ) end )
  10. Dimos7

    whats wrong with this script?

    addEventHandler("onClientKey", root, function(button, press) if button =="mouse1" and press or button =="lalt" and press or button =="lctrl" and press then setPedAnimation(localPlayer, "rifle", "rifle_fire", -1, false, false, false, false) fireWeapon(weapon) setWeaponState(weapon, "firing") else setWeaponState(weapon, "ready") end if button =="mouse2" and press then if button == "mouse2" and press and getControlState (localPlayer, "crouch") then setPedAnimation(localPlayer, "rifle", "rifle_crouchfire", -1, false, false, false, false) end setPedAnimation(localPlayer, "rifle", "rifle_fire", -1, false, false, false, false) end else setPedAnimation(localPlayer, false) end if button =="mouse2" and press and button =="mouse1" and press then fireWeapon(weapon) setWeaponState(weapon, "firing") setPedAnimation(localPlayer, "rifle", "rifle_fire", - 1,false, false, false, false) else setPedAnimation(localPlayer, false) setWeaponState(weapon, "ready") end if button == "mouse1" and press and button =="mouse2" and press and getControlState(localPlayer, "crouch") then fireWeapon(weapon) setWeaponState(weapon, "firing") setPedAnimation(localPlayer, "rifle", "rifle_crouchfire", - 1, false, false, false, false, false) else setPedAnimation(localPlayer, false) setWeaponState(weapon, "ready") end end end) Try this
  11. Dimos7

    whats wrong with this script?

    Post the code so we help you
  12. Dimos7

    whats wrong with this script?

    setPedAnimation getPedTarget On client key put if button is mouse2 and find the correct anim
  13. Dimos7

    whats wrong with this script?

    function test() x,y,z = getElementPosition(localPlayer) weapon = createWeapon("ak-47", x, y, z) setWeaponAmmo(weapon, 120) setWeaponClipAmmo(weapon, 32) setWeaponState(weapon, "ready") setElementAlpha(weapon, 0) local newAK = createObject(2965, x, y, z) attachElements(weapon, newAK) exports['bone_attach']:attachElementToBone(newAK, localPlayer, 12, 0, 0, 0, 0, -90, 0) end addCommandHandler("aktest", test) addEventHandler("onClientKey", root, function(button, press) if button =="mouse1" and press or button =="lalt" and press or button =="lctrl" and press or button =="ralt" and press or button =="rctrl" and press then fireWeapon(weapon) setWeaponState(weapon, "firing") else setWeaponState(weapon, "ready") end end ) addEventHandler("onClientWeaponFire" , root, function(hitElement, hitX, hitY, hitZ) setPedAimTarget(localPlayer, hitX, hitY, hitZ) end )
  14. Dimos7

    whats wrong with this script?

    onClientWeaponFire fireWeapon setWeaponState setPedAimTarget getKeyState
  15. Dimos7

    whats wrong with this script?

    function test() local x,y,z = getElementPosition(localPlayer) local weapon = createWeapon("ak-47", x, y, z) setWeaponAmmo(weapon, 120) setWeaponClipAmmo(weapon, 32) setWeaponState(weapon, "ready") setElementAlpha(weapon, 0) local newAK = createObject(2965, x, y, z) attachElements(newAK, weapon) exports['bone_attach']:attachElementToBone(localPlayer, newAK, 25, 0, 0, 0, 0, -90, 0) end addCommandHandler("aktest", test)