-- LUA Script - precede every function and global member with lowercase name of script + '_main' -- Default script - does nothing. local text = {} function text3d_init_name(e, name) text[e] = name end function text3d_main(e) local Ent = g_Entity[e] if Ent then local xd, zd = Ent.x - g_PlayerPosX, Ent.z - g_PlayerPosZ if xd*xd+zd*zd < 300*300 then Prompt3D(text[e], 0) PositionPrompt3D(Ent.x, Ent.y + 30, Ent.z, math.deg(math.atan2(xd, zd))) end --Prompt(xd .. ", " .. zd .. ", " .. text[e]) end end