Howto DrawSprite?

Hey hope someone can help me out here

i’m trying to make logo appear when i go into a vehicle
made this little client lua

Citizen.CreateThread(function()
	while true do
	Citizen.Wait(1)
		if IsPedInAnyVehicle(GetPlayerPed(-1),true) then		
			if not HasStreamedTextureDictLoaded("logo") then
				RequestStreamedTextureDict("logo", true)
				while not HasStreamedTextureDictLoaded("logo") do
					Wait(1)
				end
			else
			DrawSprite("logo", thclogo, 0.700,0.760,0.12,0.185, 0.0, 255, 255, 255, 255 )
		end
	end
end)

But nothing happens when i go into a vehicle?

What is thclogo? You need to put it between quotes if it’s the name of a texture.

1 Like

First of all, as @mraes said what is “thclogo”? If it’s a string then you should be fine. If it is a string then the error with your script is described below.

Secondly, you’ve missed an “end”. I believe that you’ve written “else” when you meant to put “end”. Change that and, assuming “thclogo” is a string variable, your script should work.

1 Like

Any modern way to do this? I want to display an image at all times while a player is in a vehicle