Shopping Cart
11abac85b780a6bfb422bb414511bacab31e72a7

[HOW-TO] How to stream custom marker! – Modding Tutorials

FiveM Modding Tutorial


unknown


STEP 1 : Create your PNG or DDS file
STEP 2 : Import your png to ydt texture via OpenIV. In this tutorial we import it to my addon car

  1. Open stream folder
  2. Toggle edit mode in OpenIV
    image
  3. Open .ytd file and import your png.
  4. Save and stream your file

STEP 3 : Draw it

DrawMarker(9, x, y, z, 0.0, 0.0, 0.0, 0.0, 90.0, 0.0, 3.0, 3.0, 3.0, 255, 255, 255, 255,false, false, 2, true, "your-ytd-name", "your-png-name", false)

Example : i was import pizza.png to bmws.ytd, so

Citizen.CreateThread(function()
    while true do
        Citizen.Wait(0)
		if not HasStreamedTextureDictLoaded("bmws") then
				RequestStreamedTextureDict("bmws", true)
				while not HasStreamedTextureDictLoaded("bmws") do
					Wait(1)
				end
			else
			DrawMarker(9, -268.8787, -991.3987, 32.00805, 0.0, 0.0, 0.0, 0.0, 90.0, 0.0, 3.0, 3.0, 3.0, 255, 255, 255, 255,false, false, 2, true, "bmws", "pizza", false)
		end
    end
end)



Original source: https://forum.cfx.re/t/how-to-how-to-stream-custom-marker/873319

Leave a Reply
FiveM ESX Scripts

The best scripts and maps

Best support

Problems? We are there to help!

Wide range of products

We have a wide range of products

100% Secure Checkout

Easy and encrypted