--DESCRIPTION: Reset char pos chars = {} pos = {} function resetpos_init(e) chars[e] = {} chars[e].eID = e chars[e].name = GetEntityName(e) pos[e] = {} pos[e] = {ResPosX=0, ResPosY=0,ResPosZ=0 } end function resetpos_main(e) if g_KeyPressE == 1 then pos[e].ResPosX = 500 -- you'll have to change these values to suit your needs. pos[e].ResPosY = 600 pos[e].ResPosZ = 400 for i = 1,g_EntityElementMax,1 do if chars[e].name == GetEntityName(i) then ResetPosition(e,pos[e].ResPosX,pos[e].ResPosY,pos[e].ResPosZ) end end end --g_KeyPressE end --main