Jump to content

adamb

Members
  • Posts

    32
  • Joined

  • Last visited

Everything posted by adamb

  1. Alright, so i made an 'arrest' script, which basically stops an NPC and applys the animation 'handsup' on it. Tho it doesn't work / work on slothbots neither NPC-HLC bots. heres the code: for i,v in ipairs(getElementsByType("player")) do bindKey(v, "e", "down", "arrest") end function onPlayerTarget ( playerSource, keyPresser, key, keyStatetargetElem, targetElem ) setPedAnimation( targetElem, "ped", "handsup") end addCommandHandler("arrest", onPlayerTarget) Can anyone help me out?
  2. Is there any way to destroy a blip created by createBlip ?
  3. I'm making a police callout system, and i'm trying to make it as real as possible, so delaying it would make it more realistic, as real police doesn't get all their calls at the same time.
  4. Nope, that still gets me the same problem just repeated again and again and again.
  5. Thanks for the quick reply, Tho, i need to delay SetElementParent with a timer? Can you show me how? And i do need time to create the blip.
  6. Hey, i just got a problem while scripting this, and i would need help with it. It gives me this error: Bad arguement @ 'setElementParent' [Expected element at arguement 1, got nil] setTimer( function() victimblip = createBlip(Mx, My, Mz, 0, 0, 0, 0, 1) end, 1000, 0) setElementParent(victimblip, theMugPlace)
×
×
  • Create New...