PHP код:
local function Player_Update()
PlayerFrame:ClearAllPoints();
PlayerFrame:SetPoint("BOTTOM", "UIParent",-243,178)
PlayerFrame:SetScale(1.4)
PlayerFrame.SetPoint = function()end -- Not allow playerframe to move while in vehicle
end
local f = CreateFrame("Frame", nil, UIParent)
f:RegisterEvent("PLAYER_ENTERING_WORLD")
f:SetScript("OnEvent", Player_Update)
local function Target_Update()
TargetFrame:ClearAllPoints()
TargetFrame:SetPoint("BOTTOM", "UIParent",245,178)
TargetFrame:SetScale(1.4)
end
local f = CreateFrame("Frame", nil, UIParent)
f:RegisterEvent("PLAYER_ENTERING_WORLD")
f:SetScript("OnEvent", Target_Update)