Jump to content

vip tag


Recommended Posts

hi guys i made a vip script the problem in the vip tag never show i don't know where is the error ?

---Tag---
local VipIconGold = dxCreateTexture("img/Gold.png")
local VipIconSilver = dxCreateTexture("img/Silver.png")
local VipIconBronze = dxCreateTexture("img/Bronze.png")

addEventHandler("onClientPreRender", root,
	function()
		for i, player in ipairs(getElementsByType("player")) do
			if not (isPedInVehicle ( player )) and player ~= localPlayer then
				local VIPType = getElementData(player, "VIPType") 
or false 
				local x, y, z = getPedBonePosition(player, 8)
				if VIPType == "Gold" then
					dxDrawMaterialLine3D(x, y, z+0.7, x, y, z+0.3, VipIconGold, 0.5, tocolor(255,255,255,255))
				elseif VIPType == "Silver" then
					dxDrawMaterialLine3D(x, y, z+0.7, x, y, z+0.3, VipIconSilver, 0.5, tocolor(255,255,255,255))
				elseif VIPType == "Bronze" then
					dxDrawMaterialLine3D(x, y, z+0.7, x, y, z+0.3, VipIconBronze, 0.5, tocolor(255,255,255,255))
				end
			end
		end
	end
)

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...