Advertisement
Guest User

Untitled

a guest
Jan 1st, 2018
673
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.56 KB | None | 0 0
  1.     if not relationshipSet then
  2.         Citizen.Trace("Set relationship groups\n")
  3.         AddRelationshipGroup("zombeez")
  4.         SetRelationshipBetweenGroups(5, GetHashKey("zombeez"), GetHashKey("PLAYER"))
  5.         SetRelationshipBetweenGroups(5, GetHashKey("PLAYER"), GetHashKey("zombeez"))
  6.         relationshipSet = true
  7.     end
  8.    
  9.     local playerPed = GetPlayerPed(-1)
  10.     local x, y, z
  11.     local vehicle
  12.  
  13.     x, y, z = table.unpack( GetOffsetFromEntityInWorldCoords( playerPed, 0.0, 7.5, 0.0 ) )
  14.    
  15.     Citizen.Trace("Got current player xyz, x=" .. x.. ",y=" .. y .. ",z=" .. z .. "\n")
  16.     RequestModel(0xAC4B4506)
  17.     while not HasModelLoaded(0xAC4B4506) do
  18.         Wait(1)
  19.     end
  20.    
  21.    
  22.     Citizen.Trace("Loading model\n")
  23.     ped = CreatePed(6, 0xAC4B4506, x, y, z, 0.0, true, true)
  24.     Citizen.Trace("Created ped\n")
  25.  
  26.     SetPedArmour(ped, 100)
  27.     SetPedAccuracy(ped, 25)
  28.     SetPedSeeingRange(ped, 100000000.0)
  29.     SetPedHearingRange(ped, 100000000.0)
  30.  
  31.     SetPedFleeAttributes(ped, 0, 0)
  32.     SetPedCombatAttributes(ped, 46, 1)
  33.     SetPedCombatAbility(ped, 100)
  34.     SetPedCombatMovement(ped, 2)
  35.     SetPedCombatRange(ped, 2)
  36.     SetAmbientVoiceName(ped, "ALIENS")
  37.     SetPedEnableWeaponBlocking(ped, true)
  38.     SetPedRelationshipGroupHash(ped, GetHashKey("zombeez"))
  39.     DisablePedPainAudio(ped, true)
  40.     SetPedDiesInWater(ped, false)
  41.     SetPedDiesWhenInjured(ped, false)
  42.  
  43.     --SetPedIsDrunk(ped, true)
  44.     --RequestAnimSet("move_m@drunk@verydrunk")
  45.     --while not HasAnimSetLoaded("move_m@drunk@verydrunk") do
  46.         --Wait(1)
  47.     --end
  48.     Citizen.Trace("Load animation set\n")
  49.     --SetPedMovementClipset(ped, "move_m@drunk@verydrunk", 1.0)
  50.     TaskWanderStandard(ped, 1.0, 10)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement