Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if not relationshipSet then
- Citizen.Trace("Set relationship groups\n")
- AddRelationshipGroup("zombeez")
- SetRelationshipBetweenGroups(5, GetHashKey("zombeez"), GetHashKey("PLAYER"))
- SetRelationshipBetweenGroups(5, GetHashKey("PLAYER"), GetHashKey("zombeez"))
- relationshipSet = true
- end
- local playerPed = GetPlayerPed(-1)
- local x, y, z
- local vehicle
- x, y, z = table.unpack( GetOffsetFromEntityInWorldCoords( playerPed, 0.0, 7.5, 0.0 ) )
- Citizen.Trace("Got current player xyz, x=" .. x.. ",y=" .. y .. ",z=" .. z .. "\n")
- RequestModel(0xAC4B4506)
- while not HasModelLoaded(0xAC4B4506) do
- Wait(1)
- end
- Citizen.Trace("Loading model\n")
- ped = CreatePed(6, 0xAC4B4506, x, y, z, 0.0, true, true)
- Citizen.Trace("Created ped\n")
- SetPedArmour(ped, 100)
- SetPedAccuracy(ped, 25)
- SetPedSeeingRange(ped, 100000000.0)
- SetPedHearingRange(ped, 100000000.0)
- SetPedFleeAttributes(ped, 0, 0)
- SetPedCombatAttributes(ped, 46, 1)
- SetPedCombatAbility(ped, 100)
- SetPedCombatMovement(ped, 2)
- SetPedCombatRange(ped, 2)
- SetAmbientVoiceName(ped, "ALIENS")
- SetPedEnableWeaponBlocking(ped, true)
- SetPedRelationshipGroupHash(ped, GetHashKey("zombeez"))
- DisablePedPainAudio(ped, true)
- SetPedDiesInWater(ped, false)
- SetPedDiesWhenInjured(ped, false)
- --SetPedIsDrunk(ped, true)
- --RequestAnimSet("move_m@drunk@verydrunk")
- --while not HasAnimSetLoaded("move_m@drunk@verydrunk") do
- --Wait(1)
- --end
- Citizen.Trace("Load animation set\n")
- --SetPedMovementClipset(ped, "move_m@drunk@verydrunk", 1.0)
- TaskWanderStandard(ped, 1.0, 10)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement