Jump to content

raptorr

Members
  • Posts

    15
  • Joined

  • Last visited

raptorr's Achievements

Square

Square (6/54)

0

Reputation

  1. raptorr

    playSound()

    thanks for the help
  2. raptorr

    playSound()

    I want to call function playSound() in resource A to play sound from resource B
  3. raptorr

    playSound()

    hello, I need to play sound from an another resource, is there way of doing it? thanks in advance.
  4. EDIT: it works when I setvehicle manually using admin panel, but when I do it with the spawned vehicle from the .map file it laggs.
  5. I changed handling of vehicle and when I use nitro the vehicle behaves really weird (spins from side to side, etc.). I don't know why, but this happened only on some maps, not all. If someone know why is it so, please help me.
  6. still nothing, I have tried this before. I don't understand this function
  7. Still nothing, I have tried timer for 10 secs.
  8. I want to get weapon ammo but it's not working. Result should be "17" but it returns "0". If someone know what I did wrong please help me. Example: local PX, PY, PZ = getElementPosition(getLocalPlayer()) local weapon = createWeapon("uzi", PX, PY, PZ) setWeaponClipAmmo(weapon, 17) outputChatBox(getWeaponClipAmmo(weapon)) Thanks in advance...
  9. Hello, Is there any way to pass arguments to the function through eventHandler? This it what I mean: function example(arg1, arg2) -- how to pass these arguments --some function end addEventHandler("onClientRender", getRootElement(), example) Thanks in advance.
  10. Thank you very much, it work perfect...
  11. I'm trying to make a Minigun weapon that fire fast like an original minigun in the GTA. I have tried "setWeaponFiringRate()" but it doesn't work. Example: function createMinigunWeapon() local x, y, z = getElementPosition(getLocalPlayer()) weapon = createWeapon("minigun", x, y, z + 1) setWeaponFiringRate(weapon, 100) addEventHandler("onClientPreRender", root, fireMinigun) end addCommandHandler("createminigun", createMinigunWeapon) function fireMinigun() fireWeapon(weapon) end This fire every rendered frame and it's too fast. Please help me solve my problem. Thanks in advance
×
×
  • Create New...