Some interesting things from Red Dead Redemption 2.
local function DrawTexture(textureStreamed,textureName,x, y, width, height,rotation,r, g, b, a, p11)
if not HasStreamedTextureDictLoaded(textureStreamed) then
RequestStreamedTextureDict(textureStreamed, false);
else
DrawSprite(textureStreamed, textureName, x, y, width, height, rotation, r, g, b, a, p11);
end
end
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
DrawTexture("inventory_items", "ammo_arrow_poison", 0.5, 0.5, 0.051, 0.051, 0.0, 0, 0, 0, 240, false);
end
end)