local ModelSpawned = false
local PlayingAnim = false
local CurrentLocation = nil
local playerPed = GetPlayerPed(-1)
local context = GetHashKey("MINI_PROSTITUTE_LOW_PASSENGER")
local Hookers = {
{id = 1, VoiceName = "HOOKER_LEAVES_ANGRY", modelHash = "s_f_y_stripper_01", x = 2569.04, y = 6177.33, z = 163.87, heading = 359.2},
}
local locations = {
{
name = "Hookers Legion",
pos = {x = 2561.24, y = 6185.47, z = 162.68},
size = 5.0
},
}
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
coords = GetEntityCoords(playerPed)
for k,v in pairs(locations) do
if GetDistanceBetweenCoords(coords, v.pos.x, v.pos.y, v.pos.z, true) < v.size then
CurrentLocation = v
break
else
CurrentLocation = nil
end
end
end
end)
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if (not ModelSpawned) then
for i=1, #Hookers do
RequestModel(GetHashKey(Hookers[i].modelHash))
while not HasModelLoaded(GetHashKey(Hookers[i].modelHash)) do
Citizen.Wait(0)
end
SpawnedPed = CreatePed(2, Hookers[i].modelHash, Hookers[i].x, Hookers[i].y, Hookers[i].z, Hookers[i].heading, true, true)
ModelSpawned = true
if IsEntityDead(SpawnedPed) then
SpawnedPed = CreatePed(2, Hookers[i].modelHash, Hookers[i].x, Hookers[i].y, Hookers[i].z, Hookers[i].heading, true, true)
end
end
end
end
end)
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if CurrentLocation ~= nil then
SetTextComponentFormat('STRING')
AddTextComponentString('Araca çağırmak için ~b~~h~E~h~~w~ tuşuna bas.')
DisplayHelpTextFromStringLabel(0, 0, 1, -1)
if IsControlJustPressed(0,51) then
TaskEnterVehicle(SpawnedPed, GetVehiclePedIsIn(playerPed, false), -1, 0, 1.0, 1, 0)
Citizen.Wait(5000)
TriggerEvent("chatMessage", "Aleyna", {0 , 255, 0 }, "Hey tatlım, ne yapmamı istersin? Sakso veya daha iyisi?")
Citizen.Wait(1000)
TriggerEvent("chatMessage", "^1BILGI", {0 , 0, 0 }, "Sakso için /bj , Seks için /sex veya araçtan gitmesi için /getout yaz.")
end
end
end
end)
RegisterCommand("bj", function(source, args, raw)
TriggerEvent("blowjob")
end, false)
RegisterNetEvent("blowjob")
AddEventHandler("blowjob", function(inputText)
RequestAnimDict("oddjobs@towing")
while (not HasAnimDictLoaded("oddjobs@towing")) do
Citizen.Wait(0)
end
TaskPlayAnim(SpawnedPed,"oddjobs@towing","f_blow_job_loop", 1.0, -1.0, 650000, 0, 1, true, true, true)
TaskPlayAnim(playerPed,"oddjobs@towing","m_blow_job_loop", 1.0, -1.0, 6500000, 0, 1, true, true, true)
TriggerServerEvent("InteractSound_SV:PlayWithinDistance", 8, "bj", 1.0)
end)
RegisterCommand("sex", function(source, args, raw)
TriggerEvent("havesex")
end, false)
RegisterNetEvent("havesex")
AddEventHandler("havesex", function(inputText)
RequestAnimDict("mini@prostitutes@sexlow_veh")
while (not HasAnimDictLoaded("mini@prostitutes@sexlow_veh")) do
Citizen.Wait(0)
end
TaskPlayAnim(SpawnedPed,"mini@prostitutes@sexlow_veh","low_car_sex_loop_female", 1.0, 6500000, -1, 0, 1, true, true, true)
TaskPlayAnim(playerPed,"mini@prostitutes@sexlow_veh","low_car_sex_loop_player", 1.0, 6500000, -1, 0, 1, true, true, true)
TriggerServerEvent("InteractSound_SV:PlayWithinDistance", 8, "sex", 0.4)
end)
RegisterCommand("getout", function(source, args, raw)
TriggerEvent("sendhookerhome")
TriggerServerEvent("InteractSound_SV:PlayWithinDistance", 8, "bj", 0.0)
end, false)
RegisterNetEvent("sendhookerhome")
AddEventHandler("sendhookerhome", function(inputText)
TaskLeaveVehicle(SpawnedPed, vehicle, 0)
TaskGoToCoordAnyMeans(SpawnedPed, 2569.04, 6177.33, 163.87, 5.0, 0, 0, 786603, 0xbf800000)
end)
Citizen.CreateThread(function()
while true do
Citizen.Wait(1000)
if IsEntityDead(SpawnedPed) then
SpawnedPed = CreatePed(2, "s_f_y_stripper_01", 2569.04, 6177.33, 163.87, 359.2, true, true)
end
end
end)