Guest User

SWAT PEDS TEST2

a guest
Jan 15th, 2020
87
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. intpeds = {
  2. {id=265,x=1655.4,y=-1691.5,z=15.6,rot=160,block="Ped",anim="idle_armed",weapon="m4"},
  3. {id=281,x=1638.7,y=-1683.5,z=13.5,rot=270,block="police",anim="coptraf_come"},
  4. {id=285,x=1650.1,y=-1656.1,z=22.5,rot=180,block="Ped",anim="idle_armed",weapon="m4"},
  5. {id=285,x=1658.1,y=-1656.1,z=22.5,rot=180,block="Ped",anim="idle_armed",weapon="m4"},
  6. {id=285,x=1634.6,y=-1677.9,z=13.5,rot=225,block="Ped",anim="idle_armed",weapon="m4"},
  7. {id=285,x=1699.8,y=-1682.7,z=20.2,rot=90,block="Ped",anim="idle_armed",weapon="m4"},
  8. {id=285,x=1679.7,y=-1610.3,z=22.5,rot=45,block="Ped",anim="idle_armed",weapon="m4"},
  9. {id=285,x=1629.5,y=-1663.3,z=22.5,rot=180,block="Ped",anim="idle_armed",weapon="m4"},
  10. {id=280,x=1645.9,y=-1679.1,z=21.4,rot=135,block="misc",anim="idle_chat_02"},
  11. {id=285,x=1647.1,y=-1679.9,z=21.4,rot=280,block="misc",anim="idle_chat_02",weapon="deagle"},
  12.  
  13. {id=266,x=-1791.2,y=947.03,z=514.9,rot=180,block="cop_ambient",anim="copbrowse_loop",int=10,dim=4},
  14. {id=246,x=-1745.8,y=945.8,z=512.6,rot=250,block="bd_fire",anim="wash_up",int=10,dim=4},
  15. {id=281,x=-1766.8,y=1034.1,z=512.6,rot=90,block="Ped",anim="idle_armed",weapon="shotgun",int=10,dim=4},
  16. }
  17.  
  18. for k, v in ipairs(intpeds) do
  19. local intped = createPed(v.id,v.x,v.y,v.z,v.rot)
  20. setPedAnimation(intped,v.block,v.anim,-1,true,false,false)
  21. if v.weapon and v.weapon == "m4" then
  22. givePedWeapon(intped,31,1000,true)
  23. elseif v.weapon and ve.weapon == "deagle" then
  24. givePedWeapon(intped,24,1000,true)
  25. elseif v.weapon and ve.weapon == "shotgun" then
  26. givePedWeapon(intped,25,1000,true)
  27. end
  28. if v.int and v.int == 10 then
  29. setElementInterior(intped, 10)
  30. elseif v.dim and v.dim == 4 then
  31. setElementDimension(intped, 4)
  32. end
  33. addEventHandler ( "onClientPedDamage", intped, function () cancelEvent() end )
  34. end
RAW Paste Data