DarkBeautyDZ Posted March 5, 2019 Share Posted March 5, 2019 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
DarkBeautyDZ Posted March 6, 2019 Author Share Posted March 6, 2019 (edited) nvm it show for others but not for the vip owner ;( Edited March 6, 2019 by DarkBeautyDZ Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now