Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Variables
- local ped = PlayerPedId()
- local x1, y1, z1, h1 = 0.0
- local px1, py1, pz1, ph1 = 0.0
- local px2, py2, pz2, ph2 = 0.0
- local px3, py3, pz3, ph3 = 0.0
- local newped = 0
- local model1 = GetHashKey("a_m_m_og_boss_01")
- local model2 = GetHashKey("a_m_m_malibu_01")
- local model3 = GetHashKey("a_m_m_malibu_01")
- local look = false
- Citizen.CreateThread(function()
- RequestModel(model1)
- while not HasModelLoaded(model1) do
- RequestModel(model1)
- Citizen.Wait(0)
- end
- RequestModel(model2)
- while not HasModelLoaded(model2) do
- RequestModel(model2)
- Citizen.Wait(0)
- end
- RequestModel(model3)
- while not HasModelLoaded(model3) do
- RequestModel(model3)
- Citizen.Wait(0)
- end
- RequestAnimDict("mini@strip_club@idles@bouncer@base")
- while not HasAnimDictLoaded("mini@strip_club@idles@bouncer@base") do
- Wait(1)
- end
- RequestAnimDict("amb@world_human_window_shop@male@idle_a")
- while not HasAnimDictLoaded("amb@world_human_window_shop@male@idle_a") do
- Wait(1)
- end
- RequestAnimDict("anim@heists@heist_corona@single_team")
- while not HasAnimDictLoaded("anim@heists@heist_corona@single_team") do
- Wait(1)
- end
- end)
- -- Functions
- RegisterCommand("CreatePed", function()
- ped1 = CreatePed(4, model1, px1, py1, pz1, ph1, false, true)
- ped2 = CreatePed(4, model2, px2, py2, pz2, ph2, false, true)
- ped3 = CreatePed(4, model3, px3, py3, pz3, ph3, false, true)
- TaskPlayAnim(ped1,"mini@strip_club@idles@bouncer@base","base", 8.0, 0.0, -1, 1, 0, 0, 0, 0)
- TaskPlayAnim(ped2,"amb@world_human_window_shop@male@idle_a","browse_a", 8.0, 0.0, -1, 1, 0, 0, 0, 0)
- TaskPlayAnim(ped3,"anim@heists@heist_corona@single_team","single_team_intro_two", 8.0, 0.0, -1, 1, 0, 0, 0, 0)
- end, false)
- RegisterCommand("ped1", function()
- ped = PlayerPedId()
- px1, py1, pz1 = table.unpack(GetEntityCoords(ped, true))
- ph1 = GetEntityHeading(ped)
- print(px1, py1, pz1, ph1)
- end, false)
- RegisterCommand("ped2", function()
- ped = PlayerPedId()
- px2, py2, pz2 = table.unpack(GetEntityCoords(ped, true))
- ph2 = GetEntityHeading(ped)
- print(px2, py2, pz2, ph2)
- end, false)
- RegisterCommand("ped3", function()
- ped = PlayerPedId()
- px3, py3, pz3 = table.unpack(GetEntityCoords(ped, true))
- ph3 = GetEntityHeading(ped)
- print(px3, py3, pz3, ph3)
- end, false)
- RegisterCommand("testcd", function()
- ped = PlayerPedId()
- x1, y1, z1 = table.unpack(GetEntityCoords(ped, true))
- h1 = GetEntityHeading(PlayerPed)
- end, false)
- RegisterCommand("testped", function()
- newped = CreatePed(4, model, x1, y1, z1, 0.0, false, true)
- TaskPlayAnim(newped,"mini@strip_club@idles@bouncer@base","base", 8.0, 0.0, -1, 1, 0, 0, 0, 0)
- end, false)
- RegisterCommand("look", function()
- if look then
- look = false
- else
- look = true
- end
- end)
- RegisterCommand("fix", function()
- SetEntityVisible(ped, true)
- DisplayRadar(true)
- end, false)
- RegisterCommand("tp", function()
- SetEntityCoords(ped, x1+2, y1, z1)
- end, false)
- RegisterCommand("tpvan", function()
- SetEntityCoords(ped, 127.51, -1286.43, 29.28)
- end, false)
- Citizen.CreateThread(function()
- while true do
- while look do
- SetEntityCoords(ped, x1-0.5, y1, z1-1)
- SetEntityHeading(ped, h1)
- SetEntityVisible(ped, false)
- DisableControlAction(0, 1, true)
- DisableControlAction(0, 2, true)
- DisableControlAction(0, 142, true)
- DisableControlAction(0, 18, true)
- DisableControlAction(0, 106, true)
- DisableControlAction(0, 322, true)
- DisableControlAction(0,25, true)
- DisplayRadar(false)
- Citizen.Wait(1)
- end
- Citizen.Wait(250)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement