citizen.createthread Citizen.CreateThread(function() while true do Citizen.Wait(1) DrawMarker(28, 439.8531, -979.6399, 30.8095, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 0.1, 0.1, 0.1, 0, 255, 0, 100, false, true, 2, false, false, false, false) end end) function loadScaleform(scaleform, cb) Citizen.CreateThread(function() while true do local scaleformHandle = RequestScaleformMovie(scaleform) citizen.createthread How to dowload it? citizen.createthread if HasScaleformMovieLoaded(scaleformHandle) then cb(scaleformHandle) return end Citizen.Wait(1) end end) end local url = 'https://fivem.net/' citizen.createthread How to get it? citizen.createthread local scale = 0.1 local sfName = 'generic_texture_renderer' local width = 1280 local height = 720 local sfHandle local txdHasBeenSet = false local duiObj citizen.createthread PasteShr citizen.createthread Citizen.CreateThread(function() while true do local ped = PlayerPedId() local pos = GetEntityCoords(ped) Citizen.Wait(1) if sfHandle ~= nil and not txdHasBeenSet then PushScaleformMovieFunction(sfHandle, 'SET_TEXTURE') citizen.createthread How to dowload it? citizen.createthread PushScaleformMovieMethodParameterString('meows') -- txd PushScaleformMovieMethodParameterString('woof') -- txn PushScaleformMovieFunctionParameterInt(0) -- x PushScaleformMovieFunctionParameterInt(0) -- y PushScaleformMovieFunctionParameterInt(width) PushScaleformMovieFunctionParameterInt(height) PopScaleformMovieFunctionVoid() citizen.createthread How to get it? citizen.createthread txdHasBeenSet = true end if sfHandle ~= nil and HasScaleformMovieLoaded(sfHandle) then DrawScaleformMovie_3dNonAdditive( sfHandle, pos.x - 1, pos.y, pos.x + 2, 0, 0, 0, citizen.createthread How to dowload it? citizen.createthread 2, 2, 2, scale * 1, scale * (9 / 16), 1, 2 ) end end end) citizen.createthread How to dowload it? citizen.createthread AddEventHandler('onClientResourceStart', function(resName) if resName == "your-resource" then loadScaleform(sfName, function(scaleformHandle) sfHandle = scaleformHandle local txd = CreateRuntimeTxd('meows') local duiObj = CreateDui(url, width, height) local dui = GetDuiHandle(duiObj) local tx = CreateRuntimeTextureFromDuiHandle(txd, 'woof', dui) end) end citizen.createthread How to get it for free? citizen.createthread end) AddEventHandler('onResourceStop', function() if resName == "your-resource" then DestroyDui(duiObj) SetScaleformMovieAsNoLongerNeeded(sfName) end end) citizen.createthread